devlooped/moq
The most popular and friendly mocking framework for .NET observed · 2026-08-28
Health v2 · maintenance only
78/100
- Activity 98
- Release rhythm 40
- 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-09-03. Adoption (stars, forks) is never an input.
- gap_med: 3
- age_days: 5288
- days_rel: 726
- days_push: 13
- n_releases_24m: 2
Adoption not part of the score
6403 stars · 836 forks observed · 2026-08-28
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-08-28 · 1c175dc1090a
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| devlooped/moq | main | 78 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem