NSubstitute icon indicating copy to clipboard operation
NSubstitute copied to clipboard

`Arg.MustMatch`

Open dtchepak opened this issue 4 years ago • 0 comments

Not sure if this is a terrible idea, but was reading this SO question and started thinking about an Arg.MustMatch or similar matcher that throws on non-matches and is not caught by the normal exception handling mechanism for stubbed calls.

I think that would satisfy the specific use-case in the question, but is very limited as no other calls could be stubbed.

Opening this issue for discussion of this -- I'm really not sure if we want to implement it.

dtchepak avatar May 10 '21 02:05 dtchepak