DependencyModules.NSubstitute
NSubstitute mocks for DependencyModules tests. With [NSubstituteSupport], a test parameter with [Mock] gets a substitute. The service provider of the test gives the same substitute to the other services. Use it with DependencyModules.xUnit or DependencyModules.NUnit.
Install
dotnet add package DependencyModules.NSubstitute --version 1.7.0
Install-Package DependencyModules.NSubstitute -Version 1.7.0
<PackageReference Include="DependencyModules.NSubstitute" Version="1.7.0" />
Frameworks
Dependencies
Adoption guide
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.
Compatibility metadata lists 2 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.