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
ProtectedAsMock issues #1162
Comments
Could you please post a minimal, complete & verifiable repro demonstrating a use case where this error gets triggered? So that we know why we need a bugfix, and what exactly it is fixing. Thanks. |
You can use the tests in my pull request that throw without the fix. |
@stakx repro provided. These tests fail currently. Fixed with #1163
|
Also fails for methods. Adding method to INested // This fails [Fact] Fixed with pull request |
@tonyhallett, my apologies if I appear a little dense regarding your issues and PRs. I simply haven't yet found the time to study them all in detail; if I had, perhaps I wouldn't have been quite as confused with my review comments. It's slowly coming together now. Thanks for being patient. :-D |
Does not work with auto mocking
Due to https://github.com/moq/moq4/blob/a6fde8b6d79a7437bf642d115785b97f40779b6a/src/Moq/Protected/ProtectedAsMock.cs#L233
Does not work with virtual properties. ArgumentException
https://github.com/moq/moq4/blob/a6fde8b6d79a7437bf642d115785b97f40779b6a/src/Moq/Protected/ProtectedAsMock.cs#L289
The text was updated successfully, but these errors were encountered: