{"adoption": {"forks": 282, "observed_at": "2026-08-28T04:07:32.815643+00:00", "stars": 2972}, "canonical_url": "https://ross.abutalabs.com/products/nsubstitute", "card": {"archived": false, "artifact_type": "library", "description": "A friendly substitute for .NET mocking libraries.", "domain": ["testing", "developer-tools"], "enriched": true, "function": ["testing", "mocking"], "health_score": 100, "homepage": "https://nsubstitute.github.io", "language": "C#", "license": "NOASSERTION", "license_family": "other", "maturity": "stable", "member_repos": ["nsubstitute/NSubstitute"], "name": "nsubstitute/NSubstitute", "platform": ["dotnet"], "pushed_at": "2026-08-24T20:30:19+00:00", "repo": "nsubstitute/NSubstitute", "stars": 2972, "tags": ["test-doubles", "stubs", "fakes", "arrange-act-assert", "c-sharp", "nuget"], "topics": ["c-sharp", "dotnet", "dot-net", "testing", "testing-tools", "test", "mocking", "mock", "dotnet-core", "dotnetcore", "mocks", "stubs"], "urls": [], "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"], "what_it_is": "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.", "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"], "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"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/nsubstitute", "repo": "nsubstitute/NSubstitute", "role": "main", "score": 98}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:07:32.815643+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T07:31:38.310948+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d9edae7643c35b2db43557c199303cb29aacc681147ead1474c6701ed5640cd7", "fetched_at": "2026-08-28T04:07:32.815643+00:00", "kind": "readme", "missing": false, "url": "https://github.com/nsubstitute/NSubstitute"}, {"content_hash": "7f9c77b95f1b96d9eeb020db97abd725e01fd2383ecc7f237b2ff4000afc7875", "fetched_at": "2026-08-29T09:46:52.755657+00:00", "kind": "homepage", "missing": false, "url": "https://nsubstitute.github.io"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:07:32.815643+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T07:31:38.310948+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d9edae7643c35b2db43557c199303cb29aacc681147ead1474c6701ed5640cd7", "fetched_at": "2026-08-28T04:07:32.815643+00:00", "kind": "readme", "missing": false, "url": "https://github.com/nsubstitute/NSubstitute"}, {"content_hash": "7f9c77b95f1b96d9eeb020db97abd725e01fd2383ecc7f237b2ff4000afc7875", "fetched_at": "2026-08-29T09:46:52.755657+00:00", "kind": "homepage", "missing": false, "url": "https://nsubstitute.github.io"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T07:31:38.310948+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d9edae7643c35b2db43557c199303cb29aacc681147ead1474c6701ed5640cd7", "fetched_at": "2026-08-28T04:07:32.815643+00:00", "kind": "readme", "missing": false, "url": "https://github.com/nsubstitute/NSubstitute"}, {"content_hash": "7f9c77b95f1b96d9eeb020db97abd725e01fd2383ecc7f237b2ff4000afc7875", "fetched_at": "2026-08-29T09:46:52.755657+00:00", "kind": "homepage", "missing": false, "url": "https://nsubstitute.github.io"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:07:32.815643+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:07:32.815643+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:07:32.815643+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T07:31:38.310948+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d9edae7643c35b2db43557c199303cb29aacc681147ead1474c6701ed5640cd7", "fetched_at": "2026-08-28T04:07:32.815643+00:00", "kind": "readme", "missing": false, "url": "https://github.com/nsubstitute/NSubstitute"}, {"content_hash": "7f9c77b95f1b96d9eeb020db97abd725e01fd2383ecc7f237b2ff4000afc7875", "fetched_at": "2026-08-29T09:46:52.755657+00:00", "kind": "homepage", "missing": false, "url": "https://nsubstitute.github.io"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:07:32.815643+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:07:32.815643+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T07:31:38.310948+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d9edae7643c35b2db43557c199303cb29aacc681147ead1474c6701ed5640cd7", "fetched_at": "2026-08-28T04:07:32.815643+00:00", "kind": "readme", "missing": false, "url": "https://github.com/nsubstitute/NSubstitute"}, {"content_hash": "7f9c77b95f1b96d9eeb020db97abd725e01fd2383ecc7f237b2ff4000afc7875", "fetched_at": "2026-08-29T09:46:52.755657+00:00", "kind": "homepage", "missing": false, "url": "https://nsubstitute.github.io"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:07:32.815643+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:07:32.815643+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:07:32.815643+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T07:31:38.310948+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d9edae7643c35b2db43557c199303cb29aacc681147ead1474c6701ed5640cd7", "fetched_at": "2026-08-28T04:07:32.815643+00:00", "kind": "readme", "missing": false, "url": "https://github.com/nsubstitute/NSubstitute"}, {"content_hash": "7f9c77b95f1b96d9eeb020db97abd725e01fd2383ecc7f237b2ff4000afc7875", "fetched_at": "2026-08-29T09:46:52.755657+00:00", "kind": "homepage", "missing": false, "url": "https://nsubstitute.github.io"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:07:32.815643+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:07:32.815643+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T07:31:38.310948+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d9edae7643c35b2db43557c199303cb29aacc681147ead1474c6701ed5640cd7", "fetched_at": "2026-08-28T04:07:32.815643+00:00", "kind": "readme", "missing": false, "url": "https://github.com/nsubstitute/NSubstitute"}, {"content_hash": "7f9c77b95f1b96d9eeb020db97abd725e01fd2383ecc7f237b2ff4000afc7875", "fetched_at": "2026-08-29T09:46:52.755657+00:00", "kind": "homepage", "missing": false, "url": "https://nsubstitute.github.io"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T07:31:38.310948+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d9edae7643c35b2db43557c199303cb29aacc681147ead1474c6701ed5640cd7", "fetched_at": "2026-08-28T04:07:32.815643+00:00", "kind": "readme", "missing": false, "url": "https://github.com/nsubstitute/NSubstitute"}, {"content_hash": "7f9c77b95f1b96d9eeb020db97abd725e01fd2383ecc7f237b2ff4000afc7875", "fetched_at": "2026-08-29T09:46:52.755657+00:00", "kind": "homepage", "missing": false, "url": "https://nsubstitute.github.io"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T07:31:38.310948+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d9edae7643c35b2db43557c199303cb29aacc681147ead1474c6701ed5640cd7", "fetched_at": "2026-08-28T04:07:32.815643+00:00", "kind": "readme", "missing": false, "url": "https://github.com/nsubstitute/NSubstitute"}, {"content_hash": "7f9c77b95f1b96d9eeb020db97abd725e01fd2383ecc7f237b2ff4000afc7875", "fetched_at": "2026-08-29T09:46:52.755657+00:00", "kind": "homepage", "missing": false, "url": "https://nsubstitute.github.io"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T07:31:38.310948+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d9edae7643c35b2db43557c199303cb29aacc681147ead1474c6701ed5640cd7", "fetched_at": "2026-08-28T04:07:32.815643+00:00", "kind": "readme", "missing": false, "url": "https://github.com/nsubstitute/NSubstitute"}, {"content_hash": "7f9c77b95f1b96d9eeb020db97abd725e01fd2383ecc7f237b2ff4000afc7875", "fetched_at": "2026-08-29T09:46:52.755657+00:00", "kind": "homepage", "missing": false, "url": "https://nsubstitute.github.io"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 99, "longevity": 100, "rhythm": 97}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": ["no_license"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 6158, "days_push": 9, "days_rel": 22, "gap_med": 27, "n_releases_24m": 4}, "score": 98, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}