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
With Moq v4.9.0, the following code:
var mock = new Mock<Action>(); mock.Setup(m => m()); mock.Verify(m => m(), Times.Once());
will throw the following exception:
Moq.MockException: Expected invocation on the mock once, but was 0 times: m => No setups configured. No invocations performed. at …
The statement No setups configured. is obviously incorrect, since there is a matching setup.
No setups configured.
The text was updated successfully, but these errors were encountered:
Verify
stakx
Successfully merging a pull request may close this issue.
With Moq v4.9.0, the following code:
will throw the following exception:
The statement
No setups configured.
is obviously incorrect, since there is a matching setup.The text was updated successfully, but these errors were encountered: