NSubstitute
NSubstitute copied to clipboard
A friendly substitute for .NET mocking libraries.
**Is your feature request related to a problem? Please describe.** Unconfigured method return default value and code continues after call - which can have hard to undo consequences ... Strict...
- Add `Arg.Is(IArgumentMatcher)` 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...
I'm relatively new to mocking (but not .Net) and its been a great help writing unit tests for a new asp.net web api. As I've been refactoring I found myself...
Sorry if this has already been requested, I looked through the issues and couldn't see one for the suggestion. Also great job on NSubstitute it's a great package! **Is your...
C# 13 allows using params with many collection types. https://devblogs.microsoft.com/dotnet/csharp13-calling-methods-is-easier-and-faster/ Example: ```csharp void DoSomething2(params IEnumerable values) {} DoSomething2(new object(), new object()); ``` The compiler will automatically create the required collection....