-
-
Notifications
You must be signed in to change notification settings - Fork 798
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
SetupAllProperties doesn't setup properties that don't have a setter #136
Comments
Any chance that you can have a shot at sending a PR with a fix? /kzu from mobile
|
I'll take a look this weekend and see if I can get it fixed. |
Thanks! /kzu from mobile
|
Pull request with fix submitted. |
This is a regression from previous behavior. I think it was introduced by the change to fix this issue:
https://code.google.com/p/moq/issues/detail?id=199&can=1&q=SetupAllProperties
If I run the following code with version 3.1.416.3 it works fine but if I run it with the latest version 4.2.1409.1722 it fails with the error:
"MockException: IGet.GetOnly invocation failed with mock behavior Strict. All invocations on the mock must have a corresponding setup."
This is blocking my team from upgrading to the latest version. Hopefully this can be fixed because this is causing over 200 unit test failures when I try to upgrade.
Thanks!
The text was updated successfully, but these errors were encountered: