FindSoftware

Moq

Mocking library for .NET that creates test doubles of interfaces and classes from lambda expressions.

Moq is a mocking library for .NET. A test creates a mock of an interface or a class, sets up its members with lambda expressions and verifies the calls made to it. The README says Moq uses Castle DynamicProxy internally to intercept those calls. The quickstart examples in the wiki show the API. The copyright holders named in the license text of the stable release are Clarius Consulting, Manas Technology Solutions, InSTEDD and contributors.

Worth knowing

The default branch holds the upcoming major version, and its README says the current stable release is on another branch. The stable release and the default branch carry different license texts.

Identity

Status
Active
Maintainer
Clarius Consulting, Manas Technology Solutions, InSTEDD and Contributors4
Maintained by
Community
First release
20103

Rendering and deploy

Install with
nuget2

Releases

Current major version
45
Last release
2026-09-245

Adoption

GitHub stars
6,4111
Contributors
76

Why these figures do not compare

Sources

  1. 2026-11-16: links, Written in, GitHub stars
    api.github.com/repos/devlooped/moq
  2. 2026-11-16: links, Categories, Runtime, Install with
    github.com/devlooped/moq/blob/v4.21.0/readme.md
  3. 2026-11-16: First release
    api.github.com/repos/devlooped/moq/commits/8f948a8b19eea2535f656fe03bbe3f937b421644
  4. 2026-11-16: Maintainer, License
    github.com/devlooped/moq/blob/v4.21.0/License.txt
  5. 2026-11-16: Current major version, Last release
    github.com/devlooped/moq/releases/tag/v4.21.0
  6. 2026-11-16: Contributors
    api.github.com/repos/devlooped/moq/contributors?per_page=1

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON