NSubstitute icon indicating copy to clipboard operation
NSubstitute copied to clipboard

Custom arg matcher support

Open dtchepak opened this issue 2 months ago • 1 comments

  • Add Arg.Is(IArgumentMatcher<T>) and related overloads to provide better support for custom arg matchers.
  • Add ArgMatchers.Matching to match predicates with descriptions without requiring expressions.
  • Document changes

Feedback requests

Please check API seems reasonable. Anything missing and/or confusing with the documentation additions?

Should we move these types (ArgMatchers, IArgumentMatcher, IDescribe*) into root package, rather than NSubstitute.Core.*?

dtchepak avatar Oct 12 '25 06:10 dtchepak