NSubstitute

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.

6.2.0Latest, 11 Aug 2026
35MDownloads, all time
0Advisories on the latest
0Advisories, all versions
BSD-3-ClauseLicence
3KStars
5.6/10OpenSSF Scorecard

In the news

Sources: NuGet, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.