NSubstitute
2.0.3
NSubstitute is a friendly substitute for .NET mocking frameworks. It has a simple, succinct syntax to help developers write clearer tests. NSubstitute is designed for Arrange-Act-Assert (AAA) testing and with Test Driven Development (TDD) in mind.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
Install-Package NSubstitute -Version 2.0.3
dotnet add package NSubstitute --version 2.0.3
<PackageReference Include="NSubstitute" Version="2.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NSubstitute --version 2.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: NSubstitute, 2.0.3"
For F# scripts that support #r syntax, copy this into the source code to reference the package.
Dependencies
-
.NETFramework 3.5
- No dependencies.
-
.NETFramework 4.0
- No dependencies.
-
.NETFramework 4.5
- No dependencies.
-
.NETStandard 1.3
- Castle.Core (>= 4.0.0)
- Microsoft.CSharp (>= 4.0.1)
- NETStandard.Library (>= 1.6.0)
- System.Linq.Queryable (>= 4.0.1)
- System.Reflection.TypeExtensions (>= 4.1.0)
Used By
NuGet packages (124)
Showing the top 5 NuGet packages that depend on NSubstitute:
Package | Downloads |
---|---|
AutoFixture.AutoNSubstitute
This extension turns AutoFixture into an Auto-Mocking Container. The mock instances are created by NSubstitute. To use it, add the AutoNSubstituteCustomization to your Fixture instance.
|
|
AutofacContrib.NSubstitute
Package Description
|
|
Sitecore.FakeDb.NSubstitute
Unit testing framework for Sitecore.
|
|
NSubstituteAutoMocker
AutoMocker for use with NSubstitute
|
|
PeanutButter.TestUtils.Generic
Some generic test utilites.
|
GitHub repositories (216)
Showing the top 5 popular GitHub repositories that depend on NSubstitute:
Repository | Stars |
---|---|
aspnetboilerplate/aspnetboilerplate
ASP.NET Boilerplate - Web Application Framework
|
|
dotnet/orleans
Orleans is a cross-platform framework for building distributed applications with .NET
|
|
bitwarden/server
The core infrastructure backend (API, database, Docker, etc).
|
|
dotnet/maui
.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
|
|
abpframework/abp
Open Source Web Application Framework for ASP.NET Core
|
Version History
Version | Downloads | Last updated |
---|---|---|
4.2.2 | 2,898,771 | 6/13/2020 |
4.2.1 | 6,630,352 | 7/15/2019 |
4.2.0 | 1,362,412 | 5/19/2019 |
4.1.0 | 433,100 | 5/5/2019 |
4.0.0 | 2,117,095 | 1/30/2019 |
4.0.0-rc1 | 75,707 | 11/19/2018 |
3.1.0 | 7,733,787 | 10/27/2017 |
3.0.1 | 399,581 | 10/8/2017 |
2.0.3 | 3,406,130 | 4/25/2017 |
2.0.1-rc | 136,071 | 12/17/2016 |
2.0.0-rc | 139,346 | 8/7/2016 |
1.10.0 | 2,531,796 | 3/22/2016 |
1.9.2 | 897,892 | 10/22/2015 |
1.9.1 | 245,321 | 9/30/2015 |
1.8.2 | 717,260 | 5/29/2015 |
1.8.1 | 511,102 | 12/26/2014 |
1.8.0 | 96,497 | 11/11/2014 |
1.7.2 | 408,342 | 3/4/2014 |
1.7.1 | 188,418 | 1/16/2014 |
1.7.0 | 33,329 | 1/3/2014 |
1.6.1 | 206,518 | 6/30/2013 |
1.6.0 | 73,527 | 4/19/2013 |
1.5.0 | 213,438 | 1/25/2013 |
1.4.3 | 56,500 | 8/15/2012 |
1.4.2 | 22,567 | 7/1/2012 |
1.4.1 | 2,637 | 6/28/2012 |
1.4.0 | 14,924 | 5/4/2012 |
1.3.0 | 37,696 | 11/22/2011 |
1.2.1 | 4,448 | 10/10/2011 |
1.2.0 | 3,285 | 9/29/2011 |
1.1.0 | 22,698 | 5/21/2011 |
1.0.0 | 30,352 | 5/17/2011 |
0.9.5 | 3,226 | 1/7/2011 |
0.9.0.34 | 12,127 | 1/7/2011 |