-
-
Notifications
You must be signed in to change notification settings - Fork 812
Bug using Mock.Of on objects with virtual properties. #14
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
Comments
Merged
@yorah any chance you'll look at this? This bug makes the refactoring you did for us on LibGit2 useless to us. :( |
@haacked yep, I'll look into this in the coming days. In the meantime, did you try using SetupGet to walk around this bug? |
@yorah The problem is I have a ton of code using Mock.Of. I don't want to rewrite it all, then rewrite it again. |
@yorah Thanks for having taken care of this! ❤️ |
❤️ ❤️ ❤️ |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The pull request #9 attempts to fix this, but there are still a few cases it doesn't work. Append the following code at the end of
QueryableMocksFixture
and you'll see the tests fail.The text was updated successfully, but these errors were encountered: