-
-
Notifications
You must be signed in to change notification settings - Fork 798
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
It.Is Overload taking a T not a Func #532
Comments
I'm afraid I don't quite understand. Could you explain this in a different way, or make a concrete example? If you expect a very specific value, you don't need an matcher ( // do not do this:
mock.Verify(m => m.Foo(It.Is<int>(i => i == 42)));
// do this instead:
mock.Verify(m => m.Foo(42)); |
oh...you can do that....can you mix concrete value and "It" functions?
|
Of course. Don't forget to take a look at the quickstart over in the wiki, it demonstrates how to use the most commonly used features. ;-) |
@stakx sorry :( Thanks for your quick response! |
No worries! :) |
Rather than having to keep writing a Func to check equality
Using similar logic to the It.IsIn but with just 1 value
Suggest using the same logic as It.Is but as well as a Func, allow just an object and perform a comparison.
The text was updated successfully, but these errors were encountered: