-
-
Notifications
You must be signed in to change notification settings - Fork 802
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
Property stubs not working on sub mock #1240
Comments
Thanks for reporting. I'll look into both problems mentioned. |
Thanks. I suspect they are caused by the same problem. |
This was indeed a regression... thanks again for reporting it. You were also right that both problems had the same underlying cause. They should be fixed now. An updated version 4.17.2 should become available on NuGet shortly. |
Those unit tests look suspiciously familiar ;) Thanks for jumping on this. |
@aaronburro, 4.17.2 is already out there; but worry not, there are plenty more version numbers, so please keep reporting issues if you find any more. |
IDE: Visual Studio 2019
.NET: Framework 4.5.2
Unit Test: nUnit 3.7.0
Runner: ReSharper 2019.1
Property stubs on sub mocks aren't working as expected. The stub now has to be set using Mock.Get(mock.Object.Inner) in order for it to work. It was broken in 4.17.1 (works in 4.16.1, did not test in 4.17.0).
The text was updated successfully, but these errors were encountered: