We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Let's consider this use case:
public void DefaultValueIsNotChangedWhenPerformingInternalInvocation() { var mockBar = new Mock<IBar> { DefaultValue = DefaultValue.Empty }; var mockFoo = new Mock<IFoo>(); mockFoo.SetupSet(m => m.Bar = mockBar.Object); Assert.Equal(DefaultValue.Empty, mockBar.DefaultValue); }
The SetupSet changes the DefaultValue of the mockBar to DefaultValue.Mock.
I'm submitting a PR shortly.
The text was updated successfully, but these errors were encountered:
Fixing the devlooped#409. Reversing the disposal order of the invocat…
4b02b91
…ions in the FluentMockContext to restore the DefaultValue of mocks back to the original value.
Reapplying the fix for devlooped#409
b13d81a
2c79650
Reapplying the fix for #409
2383397
Your fix has been merged. Thank you for correcting this! :)
Sorry, something went wrong.
No branches or pull requests
Let's consider this use case:
The SetupSet changes the DefaultValue of the mockBar to DefaultValue.Mock.
I'm submitting a PR shortly.
The text was updated successfully, but these errors were encountered: