devlooped/moq
The most popular and friendly mocking framework for .NET observed · 2026-10-12
Health v2 · maintenance only
86/100
- Activity 98
- Release rhythm 64
- Longevity 100
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: n/a
- age_days: 5336
- days_rel: 26
- days_push: 12
- n_releases_24m: 1
Adoption not part of the score
6412 stars · 834 forks observed · 2026-10-12
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Moq is the most popular mocking framework for .NET, letting developers create mock objects from interfaces and classes using lambda expressions and LINQ expression trees. It provides a simple, type-safe API for setting up behavior and verifying interactions in unit tests.
Use cases
- mock interfaces and classes in .NET unit tests
- verify method calls with expected arguments in C# tests
- set up return values for dependencies in TDD
- replace hand-written test fakes with dynamic mocks
- use LINQ expressions to create succinct mock setups
When to choose
- you're writing unit tests in C# or other .NET languages
- you want a friendly, low-barrier mocking API with strong typing
- you prefer state-based or classic TDD with interaction verification
- you want the de facto standard mocking library for .NET
When to avoid
- you're not developing on the .NET platform
- you need integration or end-to-end testing rather than unit-test isolation
- you prefer a different mocking style such as NSubstitute or fake providers
Facets
library · maturity active
mocking testing testing developer-tools dotnet cross-platform csharp unit-testing tdd linq-to-mocks nuget
1 source
- readme: https://github.com/devlooped/moq · fetched 2026-10-12 · 1c175dc1090a
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| devlooped/moq | main | 86 |
For agents
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem