NSubstitute 4.2.2

NSubstitute is a friendly substitute for .NET mocking libraries. 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.

Install-Package NSubstitute -Version 4.2.2
dotnet add package NSubstitute --version 4.2.2
<PackageReference Include="NSubstitute" Version="4.2.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NSubstitute --version 4.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

NuGet packages (114)

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
EntityFrameworkTesting.NSubstitute
Testing helpers for using NSubstitute with EntityFramework.

GitHub repositories (198)

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).
gitextensions/gitextensions
Git Extensions is a standalone UI tool for managing git repositories. It also integrates with Windows Explorer and Microsoft Visual Studio (2015/2017/2019).
NLog/NLog
NLog - Advanced and Structured Logging for Various .NET Platforms

Version History

Version Downloads Last updated
4.2.2 605,247 6/13/2020
4.2.1 4,971,678 7/15/2019
4.2.0 1,167,269 5/19/2019
4.1.0 362,168 5/5/2019
4.0.0 1,842,608 1/30/2019
4.0.0-rc1 67,643 11/19/2018
3.1.0 6,944,744 10/27/2017
3.0.1 387,773 10/8/2017
2.0.3 2,992,655 4/25/2017
2.0.1-rc 109,311 12/17/2016
2.0.0-rc 129,692 8/7/2016
1.10.0 2,336,437 3/22/2016
1.9.2 815,322 10/22/2015
1.9.1 203,927 9/30/2015
1.8.2 634,320 5/29/2015
1.8.1 470,284 12/26/2014
1.8.0 85,098 11/11/2014
1.7.2 369,718 3/4/2014
1.7.1 176,138 1/16/2014
1.7.0 32,311 1/3/2014
1.6.1 198,412 6/30/2013
1.6.0 68,857 4/19/2013
1.5.0 191,120 1/25/2013
1.4.3 54,693 8/15/2012
1.4.2 21,748 7/1/2012
1.4.1 2,409 6/28/2012
1.4.0 11,273 5/4/2012
1.3.0 36,643 11/22/2011
1.2.1 3,821 10/10/2011
1.2.0 3,030 9/29/2011
1.1.0 19,070 5/21/2011
1.0.0 26,673 5/17/2011
0.9.5 2,970 1/7/2011
0.9.0.34 10,475 1/7/2011