Skip to main content
AutoFixture.AutoNSubstitute package icon

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.

Total Downloads
27.8M
27,847,337
Published
Nov 28, 2023
Latest stable version

Install

.NET CLI
dotnet add package AutoFixture.AutoNSubstitute --version 4.18.1
Package Manager Console
Install-Package AutoFixture.AutoNSubstitute -Version 4.18.1
PackageReference
<PackageReference Include="AutoFixture.AutoNSubstitute" Version="4.18.1" />

Frameworks

.NETFramework4.5.2 .NETStandard1.5 .NETStandard2.0

Dependencies

AutoFixture
.NETFramework4.5.2
[4.18.1, )
NSubstitute
.NETFramework4.5.2
[2.0.3, 6.0.0)
AutoFixture
.NETStandard1.5
[4.18.1, )
NETStandard.Library
.NETStandard1.5
[1.6.1, )
NSubstitute
.NETStandard1.5
[2.0.3, 5.0.0)
AutoFixture
.NETStandard2.0
[4.18.1, )
NSubstitute
.NETStandard2.0
[2.0.3, 6.0.0)

Adoption guide

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

Compatibility metadata lists 3 target frameworks; confirm the exact target used by your application.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.