# NSubstitute

Test double library for .NET that creates substitutes for interfaces and virtual class members, used in arrange-act-assert tests.


Source: https://findsoftware.frbit.cloud/nsubstitute/
Last reviewed: 2026-11-16
Listed since: 2026-11-16

## Record

### Links

- home: https://nsubstitute.github.io
- repository: https://github.com/nsubstitute/NSubstitute
- docs: https://nsubstitute.github.io/help/creating-a-substitute/

### Identity

- status: active
- maintainer: Anthony Egerton, David Tchepak, Alexandr Nikitin and Oleksandr Povar
- maintainerType: unknown
- parent: unknown
- firstRelease: 2009
- hqCountry: unknown

### Kind

- category: testing
- hosting: not applicable
- language: csharp
- runtime: dotnet
- runtimeMin: not applicable
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: unknown
- renderingModes: not applicable
- installMethod: nuget

### License

- licenseModel: open-source
- license: BSD-3-Clause

### Releases

- currentMajor: 6
- latestReleaseDate: 2026-08-11

### Adoption

- githubStargazers: 2983
- packagistDownloads: not applicable
- npmWeeklyDownloads: not applicable
- contributors: 73
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: unknown
- dependentPackages: 128

### Sources

- urls: https://nsubstitute.github.io/ (read 2026-11-16)
- urls: https://api.github.com/repos/nsubstitute/NSubstitute (read 2026-11-16)
- urls: https://nsubstitute.github.io/help/creating-a-substitute/ (read 2026-11-16)
- firstRelease: https://api.github.com/repos/nsubstitute/NSubstitute/commits/b63bbd1eb8004a4c3a7ac1c48016ab3ce29bba89 (read 2026-11-16)
- maintainer: https://raw.githubusercontent.com/nsubstitute/NSubstitute/v6.2.0/src/NSubstitute/NSubstitute.csproj (read 2026-11-16)
- language: https://api.github.com/repos/nsubstitute/NSubstitute (read 2026-11-16)
- category: https://nsubstitute.github.io/ (read 2026-11-16)
- runtime: https://raw.githubusercontent.com/nsubstitute/NSubstitute/v6.2.0/README.md (read 2026-11-16)
- installMethod: https://nsubstitute.github.io/ (read 2026-11-16)
- license: https://raw.githubusercontent.com/nsubstitute/NSubstitute/v6.2.0/src/NSubstitute/NSubstitute.csproj (read 2026-11-16)
- licenseModel: https://raw.githubusercontent.com/nsubstitute/NSubstitute/v6.2.0/LICENSE.txt (read 2026-11-16)
- currentMajor: https://api.github.com/repos/nsubstitute/NSubstitute/releases (read 2026-11-16)
- latestReleaseDate: https://api.github.com/repos/nsubstitute/NSubstitute/releases (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/nsubstitute/NSubstitute (read 2026-11-16)
- contributors: https://api.github.com/repos/nsubstitute/NSubstitute/contributors?per_page=1 (read 2026-11-16)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/nuget.org/packages/NSubstitute (read 2026-11-16)

## Notes

NSubstitute is a test double library for .NET test code, used in arrange-act-assert tests. The project ships it as a NuGet package, and its README lists optional Roslyn analysers for C# and Visual Basic projects as separate packages.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
