NSubstitute
NSubstitute copied to clipboard
`Arg.MustMatch`
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.