Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Static Abstract property #1398

Open
htcfreek opened this issue Aug 14, 2023 · 1 comment
Open

Support Static Abstract property #1398

htcfreek opened this issue Aug 14, 2023 · 1 comment

Comments

@htcfreek
Copy link

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.

@stakx
Copy link
Contributor

stakx commented Aug 14, 2023

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: castleproject/Core#447.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants