-
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…
-
**Describe the bug**
I'm attempting to update NSubstitute V4.0.0 -> V4.2.2 and am seeing a test fail that did not previously.
A call to 'Received.InOrder' is failing to detect a method call that i…
-
This issue lists Renovate updates and detected dependencies. Read the [Dependency Dashboard](https://docs.renovatebot.com/key-concepts/dashboard/) docs to learn more.
This repository currently has no…
-
NSubstitute **ver. 2.0.3** (This is old version) I need use old version . becuase my project not support **c# 4.0** yet.
I want to use NSubstitute, ForPartsOf API , and I write a virtual method. bu…
-
For the given code snippet, there is no support to replace the '.Callback' method with the NSubstitute equivalent.
_mockAuditLog .Setup(l => l.Add(AuditLevel.Information, It.IsAny(), null, It.IsAny()…
-
**Is your feature request related to a problem? Please describe.**
I've found in the past that when a mocked interface takes a large object it can make the verification of a call very large. This can…
-
Los test actualmente dependen de recursos para funcionar.
Varios de estos test se podrían mejorar para que no dependan de recursos y utilicen mock (https://nsubstitute.github.io/).
-
**Question**
Hello everyone. I'm having trouble in verifying a call to a method accepting a single argument, whose type is a generic interface (say, `IMyArgument`). At compile time, I don't have acce…
-
Example (with NUnit + NSubstitute)
Ref: http://jglue.org/cdi-unit-user-guide/#mocks
``` csharp
public class MyComponent
{
[Inject] IDbSet _users;
[Inject] OtherComponent _otherStuff;
publ…
-
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…