Support Static Abstract property
I need support for static abstract properties in non-static interfaces. (New in .Net 7.)
If I setup such an interface it fails because the property is missing.
Btw. I don't need to acces this property in my test code.
Hi @htcfreek. This capability first needs to be implemented in Castle DynamicProxy (the interceptor library that Moq is built upon) before it can be supported in Moq. There's already an issue for that over at their repository: https://github.com/castleproject/Core/issues/447.
Due to lack of recent activity, this issue has been labeled as 'stale'. It will be closed if no further activity occurs within 30 more days. Any new comment will remove the label.
@stakx This is still not fixed/implemented. Correct?
@htcfreek, I wouldn't know (but I suspect it isn't), I stopped being a project maintainer and I stopped tracking this project due to the SponsorLink disaster.
It seems once Castle.Core ships an update with that support, things should Just Work (or very close to that).
Feel free to back this issue if it's important for your use cases, to help prioritize work. Thanks.
@stakx Any updates on this?
@htcfreek, sorry, but I can no longer help you. I stopped maintaining and contributing to Moq last year, when kzu introduced SponsorLink, a move that I strongly disagreed with. (Search the closed issues from around August 2023 to learn more about that.)
On DynamicProxy's side, there isn't any support for static abstract type members yet, either. I was going to try and tackle this and other pending feature requests, but unfortunately the project (castleproject/Core) is currently stalled due to its principal maintainer being absent from GitHub. So I suspect this isn't going to happen anytime soon.
Due to lack of recent activity, this issue has been labeled as 'stale'. It will be closed if no further activity occurs within 30 more days. Any new comment will remove the label.
@github-actions, please keep open. This is not fixed.
