-
**Describe the bug**
When there is a missing binding redirect, the mock does not throw an error when evaluating with Arg.Is(), which make it hard to debug the issue. It hides the fact that it could n…
-
I've been trying to UnitTest the SDK and using nsubstitute.
Have not found a way to return something i want out of the client.Users object.
The client.Users returns an IUserCollection object which I…
-
**Describe the bug**
Trying to configure/override a generic overridden virtual method with an out parameter on a class substitute throws an exception.
```
System.ArgumentException : Could not find …
-
Do you have any plans on developing a version of your awesome library for EF7? We used your EntityFrameworkTesting.NSubstitute a lot in our application and in the process of starting the migration fro…
-
**Describe the bug**
NSubstitute is calling base methods even during a configure overidden call when the target member is internal
**To Reproduce**
```
// FAILS
[Fact]
public void TestInternal…
-
NSubstituteでは処理されたかの成否と、処理された回数をテストできるReceive系のメソッドがあるので、お時間があれば、単体テストに組み込むと良いかと思います。
http://nsubstitute.github.io/help/received-calls/
``` csharp
[Test]
public void MultipleFireWork…
-
Using expression trees instead of simple lambda's in `Arg.Is` is less than ideal. For example, `Arg.Is(x => x?.Length == 0)` is not allowed because expression trees cannot contain null propagating ope…
-
**NS2002** / **Constructor parameters count mismatch**
Here's a type:
````cs
public class Something {
public Something(string? foo = "foo", int? bar = 10) {
// etc.
}
}
````
This …
-
global imports need to be before normal imports.
```cs
global using NExpect;
global using NSubstitute;
global using NUnit.Framework;
#pragma warning disable SA1216 // Using static directives sh…
-
Moq library, that we use in tests, has some strong privacy issues ([moq/issues/1372](https://github.com/moq/moq/issues/1372)). We don't want to take any risk with either GDPR or security.
As of Aug…