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
See [Setting out and ref args](/help/setting-out-and-ref-arguments/) for more information on working with `out` and `ref`.
129
151
152
+
## Custom argument matchers
153
+
154
+
_[Since v6.0]_
155
+
156
+
Custom argument matching logic can be provided by implementing the `IArgumentMatcher<T>` interface in the `NSubstitute.Core.Arguments` namespace. Ideally custom matchers should also implement `NSubstitute.Core.IDescribeSpecification`, which explains what conditions an argument needs to meet to match the required condition, and `NSubstitute.Core.IDescribeNonMatches`, which provides an explanation about why a specific argument does not match.
157
+
158
+
Custom argument matchers can be used via `Arg.Is(IArgumentMatcher<T>)`.
0 commit comments