Install
Moq
Moq is the most popular and friendly mocking framework for .NET.
4.21.0Latest, 24 Sep 2026
1.3BDownloads, all time
0Advisories on the latest
1Advisories, all versions
BSD-3-ClauseLicence
6.4KStars
5.0/10OpenSSF Scorecard
Source · Homepage · Ask AI Mode · · Markdown
Known advisories
| Severity | Advisory | Fix | Published |
|---|---|---|---|
| Low | Moq v4.20.0-rc to 4.20.1 share hashed user data GHSA-6r78-m64m-qwcf | Fixed in 4.20.2 | 10 Aug 2023 |
In the news
- NimbleMock: A Modern, Blazing-Fast Mocking Library for .NET (34x Faster Than Moq) dev.to, 13 Dec 2025
- A Complete Guide to Unit Testing in .NET Core (with xUnit, Moq, and FluentAssertions) dev.to, 20 Oct 2025
- Testing Services on .NET8 with NUnit and Moq dev.to, 31 Aug 2025
- .NET Learning Notes: Using xUnit + moq to unit test dev.to, 22 Apr 2025
- A Beginner's Guide to Unit Testing in .NET with NUnit and Moq dev.to, 3 Feb 2025
On Hacker News
- Since v4.20, Moq is harvesting email addresses 74 points, 10 comments, 8 Aug 2023
- Media over QUIC (MoQ): Refactoring the Internet's real-time media stack 72 points, 5 comments, 22 Aug 2025
- Popular open source project Moq criticized for quietly collecting data 66 points, 19 comments, 9 Aug 2023
- MoQ Boy 64 points, 11 comments, 26 Apr 2026
Sources: NuGet, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.