-
**Describe the bug**
When using the Returns extension method with a Task that may contain a nullable value, the method is ambiguous. The same happens for non primitive nullable types. See the example…
-
Is there already an analyzer that schould trigger when the following incorrect use happens?
This caused some isssues in my test library and I only found out after commenting out about 50 tests. So an…
-
**Describe the bug**
If a mocked interface has a method with an interpolated string handler an exception is thrown if the method is called.
**To Reproduce**
```csharp
using System.Runtime.Compi…
-
Choose a library for mocking objects within unit tests and wire it into the existing tests.
-
I fall into a category of people that has transitioned to using NSubstitute after discovering security concerns in Moq, which are detailed thoroughly in this article: https://medium.com/@michalsitek/c…
-
From https://github.com/nsubstitute/NSubstitute/issues/222#issuecomment-557198534, saying `protected virtual` is substitutable is misleading. While technically possible (hacky) with the current API, i…
-
[NS1000](https://github.com/nsubstitute/NSubstitute.Analyzers/blob/master/documentation/rules/NS1000.md) and [NS1001](https://github.com/nsubstitute/NSubstitute.Analyzers/blob/master/documentation/rul…
rklec updated
2 years ago
-
I have a simple interface and a class that dispatches against it:
```
public interface IReportRunner
{
void Execute(int year, int month);
}
public class ClassThatTakesInterfaceDependency
…
-
Could you please add to readme some explanation/links, why we should consider to use Ninject.MockingKernel.NSubstitute instead of just mocking framework.
Could you also remove dots in packages na…
-
I've just started using NSubstitute and quickly ran into a problem when my method expected a collection argument, as described here: http://stackoverflow.com/questions/12699066/nsubstitute-checking-re…