NSubstitute 4.3.0
Prefix ReservedSee the version list below for details.
dotnet add package NSubstitute --version 4.3.0
NuGet\Install-Package NSubstitute -Version 4.3.0
<PackageReference Include="NSubstitute" Version="4.3.0" />
paket add NSubstitute --version 4.3.0
#r "nuget: NSubstitute, 4.3.0"
// Install NSubstitute as a Cake Addin #addin nuget:?package=NSubstitute&version=4.3.0 // Install NSubstitute as a Cake Tool #tool nuget:?package=NSubstitute&version=4.3.0
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.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp1.0 was computed. netcoreapp1.1 was computed. netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard1.3 is compatible. netstandard1.4 was computed. netstandard1.5 was computed. netstandard1.6 was computed. netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 is compatible. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen30 was computed. tizen40 was computed. tizen60 was computed. |
Universal Windows Platform | uap was computed. uap10.0 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.5
- Castle.Core (>= 4.4.1)
- System.Threading.Tasks.Extensions (>= 4.3.0)
-
.NETFramework 4.6
- Castle.Core (>= 4.4.1)
- System.Threading.Tasks.Extensions (>= 4.3.0)
-
.NETStandard 1.3
- Castle.Core (>= 4.4.1)
- NETStandard.Library (>= 1.6.1)
- System.Linq.Queryable (>= 4.3.0)
- System.Reflection.TypeExtensions (>= 4.3.0)
- System.Threading.Tasks.Extensions (>= 4.3.0)
-
.NETStandard 2.0
- Castle.Core (>= 4.4.1)
- System.Threading.Tasks.Extensions (>= 4.3.0)
-
net5.0
- Castle.Core (>= 4.4.1)
-
net6.0
- Castle.Core (>= 4.4.1)
NuGet packages (216)
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. |
|
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
Some generic test utilites. |
|
FunFair.Test.Common
FunFair Common Test Infrastructure for building xUnit tests on top of. |
|
AutofacContrib.NSubstitute
Package Description |
GitHub repositories (419)
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
Bitwarden 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.3.0 | 60,760 | 10/28/2024 |
5.1.0 | 23,803,014 | 9/11/2023 |
5.0.0 | 10,920,238 | 2/12/2023 |
4.4.0 | 11,892,095 | 7/10/2022 |
4.3.0 | 10,922,741 | 1/24/2022 |
4.2.2 | 26,518,995 | 6/13/2020 |
4.2.1 | 14,880,329 | 7/15/2019 |
4.2.0 | 2,353,141 | 5/19/2019 |
4.1.0 | 847,815 | 5/5/2019 |
4.0.0 | 3,612,725 | 1/30/2019 |
3.1.0 | 13,370,083 | 10/27/2017 |
3.0.1 | 489,696 | 10/8/2017 |
2.0.3 | 8,756,780 | 4/25/2017 |
1.10.0 | 3,804,809 | 3/22/2016 |
1.9.2 | 1,422,622 | 10/22/2015 |
1.9.1 | 522,707 | 9/30/2015 |
1.8.2 | 1,082,473 | 5/29/2015 |
1.8.1 | 889,117 | 12/26/2014 |
1.8.0 | 149,297 | 11/11/2014 |
1.7.2 | 600,016 | 3/4/2014 |
1.7.1 | 223,848 | 1/16/2014 |
1.7.0 | 44,976 | 1/3/2014 |
1.6.1 | 296,107 | 6/30/2013 |
1.6.0 | 152,497 | 4/19/2013 |
1.5.0 | 350,785 | 1/25/2013 |
1.4.3 | 71,579 | 8/15/2012 |
1.4.2 | 30,103 | 7/1/2012 |
1.4.1 | 5,067 | 6/28/2012 |
1.4.0 | 54,503 | 5/4/2012 |
1.3.0 | 45,049 | 11/22/2011 |
1.2.1 | 10,534 | 10/10/2011 |
1.2.0 | 5,784 | 9/29/2011 |
1.1.0 | 45,823 | 5/21/2011 |
1.0.0 | 77,579 | 5/17/2011 |