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.
Sources
- 2026-11-16: links, Written in, GitHub stars
api.github.com/repos/devlooped/moq - 2026-11-16: links, Categories, Runtime, Install with
github.com/devlooped/moq/blob/v4.21.0/readme.md - 2026-11-16: First release
api.github.com/repos/devlooped/moq/commits/8f948a8b19eea2535f656fe03bbe3f937b421644 - 2026-11-16: Maintainer, License
github.com/devlooped/moq/blob/v4.21.0/License.txt - 2026-11-16: Current major version, Last release
github.com/devlooped/moq/releases/tag/v4.21.0 - 2026-11-16: Contributors
api.github.com/repos/devlooped/moq/contributors?per_page=1