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
This is currently (as of the current tip of master, a964fa7) possible:
master
public class Foo { public override string ToString() => "original"; } var mock = new Mock<Foo>(); mock.Setup(m => m.ToString()) .Callback(() => { }) .Returns(() => "changed") .Callback(() => { }) .CallBase(); Assert.Equal("original", mock.Object.ToString());
While apparently, the right thing happens, this shouldn't be possible: A method cannot return twice.
The text was updated successfully, but these errors were encountered:
.Callback(…)
.Returns(…)
.CallBase()
This will be tracked in #668 along with some other closely related issues.
Sorry, something went wrong.
No branches or pull requests
This is currently (as of the current tip of
master
, a964fa7) possible:While apparently, the right thing happens, this shouldn't be possible: A method cannot return twice.
The text was updated successfully, but these errors were encountered: