# Moq

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


Source: https://findsoftware.frbit.cloud/moq/
Last reviewed: 2026-11-16
Listed since: 2026-11-16

## Record

### Links

- repository: https://github.com/devlooped/moq
- docs: https://github.com/devlooped/moq/wiki/Quickstart
- discord: https://discord.gg/8PtpGdu

### Identity

- status: active
- maintainer: Clarius Consulting, Manas Technology Solutions, InSTEDD and Contributors
- maintainerType: community
- parent: unknown
- firstRelease: 2010
- hqCountry: unknown

### Kind

- category: testing
- hosting: not applicable
- language: csharp
- runtime: dotnet
- runtimeMin: not applicable
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: unknown
- renderingModes: not applicable
- installMethod: nuget

### License

- licenseModel: open-source
- license: BSD-3-Clause

### Releases

- currentMajor: 4
- latestReleaseDate: 2026-09-24

### Adoption

- githubStargazers: 6411
- packagistDownloads: not applicable
- npmWeeklyDownloads: not applicable
- contributors: 7
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: unknown
- dependentPackages: unknown

### Sources

- urls: https://api.github.com/repos/devlooped/moq (read 2026-11-16)
- urls: https://github.com/devlooped/moq/blob/v4.21.0/readme.md (read 2026-11-16)
- firstRelease: https://api.github.com/repos/devlooped/moq/commits/8f948a8b19eea2535f656fe03bbe3f937b421644 (read 2026-11-16)
- maintainer: https://github.com/devlooped/moq/blob/v4.21.0/License.txt (read 2026-11-16)
- category: https://github.com/devlooped/moq/blob/v4.21.0/readme.md (read 2026-11-16)
- language: https://api.github.com/repos/devlooped/moq (read 2026-11-16)
- runtime: https://github.com/devlooped/moq/blob/v4.21.0/readme.md (read 2026-11-16)
- installMethod: https://github.com/devlooped/moq/blob/v4.21.0/readme.md (read 2026-11-16)
- license: https://github.com/devlooped/moq/blob/v4.21.0/License.txt (read 2026-11-16)
- currentMajor: https://github.com/devlooped/moq/releases/tag/v4.21.0 (read 2026-11-16)
- latestReleaseDate: https://github.com/devlooped/moq/releases/tag/v4.21.0 (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/devlooped/moq (read 2026-11-16)
- contributors: https://api.github.com/repos/devlooped/moq/contributors?per_page=1 (read 2026-11-16)

## Notes

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](https://github.com/devlooped/moq/wiki/Quickstart) 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.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
