You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code decides whether or not the stubbed property setup will trigger for the call to mockDependency2.Object.IsDone = true. It doesn't correctly identify that the actual invocation's method (InheritedClass.set_IsDone) matches the one referred to in the setup (ITest1Interface.set_IsDone); but it should, because the former is the implementation of the latter.
Note to self: We might get away with simply comparing property names (as already happens in StubbedPropertiesSetup). This just might work since SetupProperty doesn't support indexers, so the property signature becomes irrelevant. The part I'm unsure about pertains to explicitly implemented properties: if a property is explicitly implemented due to redeclaration in a derived type, then its name isn't strictly unique. But this may be a rare edge case.
Hi everyone, from time to time we are performing a regular nuget update, and currently part of our previously working tests are not working any more.
IDE: VS 2022
Test Runner: vstest
Test framework: mstest
.NET Version: 4.8
Steps to reproduce:
Last version where it was working as expected: 4.16.1
The text was updated successfully, but these errors were encountered: