Info
Version: | 2.0.110 |
Author(s): | Davyd McColl |
Last Update: | Wednesday, November 13, 2024 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://github.com/fluffynuts/NExpect |
NuGet Url: | https://www.nuget.org/packages/NExpect.Matchers.NSubstitute |
Install
Install-Package NExpect.Matchers.NSubstitute
dotnet add package NExpect.Matchers.NSubstitute
paket add NExpect.Matchers.NSubstitute
NExpect.Matchers.NSubstitute Download (Unzip the "nupkg" after downloading)
Dependencies
.NETStandard 2.0
- NExpect(>= 1.0.190)
- NSubstitute(>= 4.2.2)
- NExpect(>= 1.0.190)
- NSubstitute(>= 4.2.2)
syntax for your NSubstitute assertions.
For example, one may previously have done:
```
Expect(result).To.Equal(expected);
someService.Received(1).SomeMethodCall();
```
and now you can keep it consistent:
```
Expect(result).To.Equal(expected);
Expect(someService).To.Have.Received(1).SomeMethodCall();
```.