NSubstitute 1.6.1

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package NSubstitute --version 1.6.1
NuGet\Install-Package NSubstitute -Version 1.6.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NSubstitute" Version="1.6.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NSubstitute --version 1.6.1
#r "nuget: NSubstitute, 1.6.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. 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=1.6.1

// Install NSubstitute as a Cake Tool
#tool nuget:?package=NSubstitute&version=1.6.1

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.

Product Compatible and additional computed target framework versions.
.NET Framework net35 is compatible.  net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (188)

Showing the top 5 NuGet packages that depend on NSubstitute:

Package Downloads
AutoFixture.AutoNSubstitute The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

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.

MockQueryable.NSubstitute

Extension for mocking Entity Framework Core operations such ToListAsync, FirstOrDefaultAsync etc. When writing tests for your application it is often desirable to avoid hitting the database. The extension allows you to achieve this by creating a context – with behavior defined by your tests – that makes use of in-memory data.

PeanutButter.TestUtils.Generic The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Some generic test utilites.

FunFair.Test.Common

FunFair Common Test Infrastructure for building xUnit tests on top of.

AutofacContrib.NSubstitute

Package Description

GitHub repositories (370)

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.
icsharpcode/ILSpy
.NET Decompiler with support for PDB generation, ReadyToRun, Metadata (&more) - cross-platform!
ardalis/CleanArchitecture
Clean Architecture Solution Template: A starting point for Clean Architecture with ASP.NET Core
bitwarden/server
The core infrastructure backend (API, database, Docker, etc).
App-vNext/Polly
Polly is a .NET resilience and transient-fault-handling library that allows developers to express policies such as Retry, Circuit Breaker, Timeout, Bulkhead Isolation, and Fallback in a fluent and thread-safe manner. From version 6.0.1, Polly targets .NET Standard 1.1 and 2.0+.
Version Downloads Last updated
5.1.0 6,724,148 9/11/2023
5.0.0 8,146,084 2/12/2023
4.4.0 9,791,397 7/10/2022
4.3.0 9,298,951 1/24/2022
4.2.2 24,087,209 6/13/2020
4.2.1 13,782,798 7/15/2019
4.2.0 2,240,283 5/19/2019
4.1.0 779,431 5/5/2019
4.0.0 3,372,305 1/30/2019
4.0.0-rc1 88,183 11/19/2018
3.1.0 12,558,579 10/27/2017
3.0.1 477,502 10/8/2017
2.0.3 7,499,716 4/25/2017
2.0.1-rc 155,732 12/17/2016
2.0.0-rc 194,069 8/7/2016
1.10.0 3,623,190 3/22/2016
1.9.2 1,350,488 10/22/2015
1.9.1 493,153 9/30/2015
1.8.2 1,035,420 5/29/2015
1.8.1 825,380 12/26/2014
1.8.0 139,930 11/11/2014
1.7.2 568,267 3/4/2014
1.7.1 221,000 1/16/2014
1.7.0 44,177 1/3/2014
1.6.1 288,046 6/30/2013
1.6.0 134,108 4/19/2013
1.5.0 338,490 1/25/2013
1.4.3 69,054 8/15/2012
1.4.2 29,342 7/1/2012
1.4.1 4,829 6/28/2012
1.4.0 51,866 5/4/2012
1.3.0 44,303 11/22/2011
1.2.1 9,765 10/10/2011
1.2.0 5,594 9/29/2011
1.1.0 44,011 5/21/2011
1.0.0 68,435 5/17/2011
0.9.5 5,641 1/7/2011
0.9.0.34 57,114 1/7/2011