NSubstitute 4.2.2 Prefix Reserved

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.
#r "nuget: NSubstitute, 4.2.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install NSubstitute as a Cake Addin
#addin nuget:?package=NSubstitute&version=4.2.2

// Install NSubstitute as a Cake Tool
#tool nuget:?package=NSubstitute&version=4.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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.

NuGet packages (136)

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 (236)

Showing the top 5 popular GitHub repositories that depend on NSubstitute:

Repository Stars
dotnet/maui
.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
aspnetboilerplate/aspnetboilerplate
ASP.NET Boilerplate - Web Application Framework
bitwarden/server
The core infrastructure backend (API, database, Docker, etc).
dotnet/orleans
Orleans is a cross-platform framework for building distributed applications with .NET
abpframework/abp
Open Source Web Application Framework for ASP.NET Core
Version Downloads Last updated
4.2.2 7,545,979 6/13/2020
4.2.1 8,450,695 7/15/2019
4.2.0 1,576,236 5/19/2019
4.1.0 499,315 5/5/2019
4.0.0 2,423,940 1/30/2019
4.0.0-rc1 81,332 11/19/2018
3.1.0 8,634,242 10/27/2017
3.0.1 414,080 10/8/2017
2.0.3 3,942,131 4/25/2017
2.0.1-rc 146,796 12/17/2016
2.0.0-rc 150,077 8/7/2016
1.10.0 2,754,141 3/22/2016
1.9.2 994,252 10/22/2015
1.9.1 297,696 9/30/2015
1.8.2 799,105 5/29/2015
1.8.1 559,414 12/26/2014
1.8.0 105,167 11/11/2014
1.7.2 446,021 3/4/2014
1.7.1 198,960 1/16/2014
1.7.0 35,042 1/3/2014
1.6.1 220,973 6/30/2013
1.6.0 80,647 4/19/2013
1.5.0 242,294 1/25/2013
1.4.3 58,533 8/15/2012
1.4.2 23,156 7/1/2012
1.4.1 2,807 6/28/2012
1.4.0 18,063 5/4/2012
1.3.0 38,846 11/22/2011
1.2.1 5,039 10/10/2011
1.2.0 3,473 9/29/2011
1.1.0 29,208 5/21/2011
1.0.0 34,827 5/17/2011
0.9.5 3,410 1/7/2011
0.9.0.34 14,995 1/7/2011