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
The second examples do not work because you are using argument matcher in a real call.
See documentation . In general Arg matchers should only be used for mock setup and checking received calls. See also feature request nsubstitute/NSubstitute.Analyzers#35 (comment) for NSubstitute.Analyzers with quick description about the proper usage
Describe the bug
I am using the Fluent Assertions for clear assertions but it doesn't affect this bug.
I have interface with the following method
When I create the substitute which throws exception for this
It not throws when in execution I use
but it works if I use simple parameters
To Reproduce
Compare two of the following tests
This works
This not
Expected behaviour
It should throws the exception in both cases
Environment:
The text was updated successfully, but these errors were encountered: