Ross ROSS = Recommend OSS · open-source software intelligence for agents

nsubstitute/NSubstitute

Some data may be outdated — see provenance labels.

A friendly substitute for .NET mocking libraries. observed · 2026-09-23

github.com/nsubstitute/NSubstitute · homepage · C# · NOASSERTION (other) observed · 2026-09-23

Health v2 · maintenance only

94/100

  • Activity 94
  • Release rhythm 90
  • Longevity 100

Flags: no_license

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.

  • gap_med: 27
  • age_days: 6206
  • days_rel: 70
  • days_push: 36
  • n_releases_24m: 4

Full methodology

Adoption not part of the score

2978 stars · 281 forks observed · 2026-09-23

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

NSubstitute is a mocking library for .NET that generates substitute instances for interfaces and virtual members with a succinct, natural syntax. It focuses on Arrange-Act-Assert testing, letting developers set return values, check received calls, and raise events with minimal configuration noise.

Use cases

  • mock dependencies in .NET unit tests
  • create stubs for interfaces in C# tests
  • verify a method was called with specific arguments
  • set return values for test doubles
  • raise events on mocked objects in tests
  • learn test-driven development with an easy mocking library

When to choose

  • you want a simple, readable mocking API with less boilerplate than Moq or Rhino Mocks
  • your tests follow the Arrange-Act-Assert pattern
  • you are new to unit testing and want a low-friction mocking library
  • you only need to mock interfaces or virtual members

When to avoid

  • you need to mock non-virtual members or static methods
  • you require advanced features like partial mocking of complex class internals
  • your project is not on the .NET platform

Facets

library · maturity stable

testing mocking testing developer-tools dotnet test-doubles stubs fakes arrange-act-assert c-sharp nuget

2 sources

Member repositories

RepositoryRoleHealth v2
nsubstitute/NSubstitutemain94

For agents

markdown · JSON · MCP: product_card(name="nsubstitute/NSubstitute")

Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem