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.
dotnet add package NSubstitute --version 6.0.0-rc.1
Install-Package NSubstitute -Version 6.0.0-rc.1
| 包名 | 版本要求 |
|---|---|
| Castle.Core | [5.1.1, ) |
| System.Threading.Tasks.Extensions | [4.5.4, ) |
| 包名 | 版本要求 |
|---|---|
| Castle.Core | [5.1.1, ) |
| 作者 | Anthony Egerton,David Tchepak,Alexandr Nikitin,Oleksandr Povar |
|---|---|
| 发布时间 | 2026-03-15 09:27:27 |
| 项目主页 | https://nsubstitute.github.io/ |
| 许可证 | https://www.nuget.org/packages/NSubstitute/6.0.0-rc.1/license |