Skip to content

Conversation

@dtchepak
Copy link
Member

  • 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.*?

- Add IDescribeSpecification to allow custom arg matchers to provide
  custom output for "expected to receive" entries.
- Fallback to ToString when IDescribeSpecification not implemented.
- Update code comment docs accordingly.
- Improved support for custom matchers

Closes nsubstitute#796.
@dtchepak
Copy link
Member Author

Hi @tpodolak,
Will these changes require analyzer updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant