Moq 4.14.7

Moq is the most popular and friendly mocking framework for .NET.

Install-Package Moq -Version 4.14.7
dotnet add package Moq --version 4.14.7
<PackageReference Include="Moq" Version="4.14.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Moq --version 4.14.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

A changelog is available at https://github.com/moq/moq4/blob/master/CHANGELOG.md.

NuGet packages (497)

Showing the top 5 NuGet packages that depend on Moq:

Package Downloads
AutoFixture.AutoMoq
This extension turns AutoFixture into an Auto-Mocking Container. The mock instances are created by Moq. To use it, add the AutoMoqCustomization to your Fixture instance. Read more at http://blog.ploeh.dk/2010/08/19/AutoFixtureAsAnAutomockingContainer.aspx
Autofac.Extras.Moq
Autofac extension for automocking and creation of mock objects in Moq.
Moq.AutoMock
An auto-mocking container that generates mocks using Moq
AutoMoq
Auto-mocking container
MockQueryable.Moq
Extension for mocking Entity Framework Core operations such ToListAsync, FirstOrDefaultAsync etc. When writing tests for your application it is often desirable to avoid hitting the database. The extension allows you to achieve this by creating a context – with behavior defined by your tests – that makes use of in-memory data.

GitHub repositories (723)

Showing the top 5 popular GitHub repositories that depend on Moq:

Repository Stars
Wox-launcher/Wox
Launcher for Windows, an alternative to Alfred and Launchy.
dotnet-architecture/eShopOnContainers
Cross-platform .NET sample microservices and container based application that runs on Linux Windows and macOS. Powered by .NET Core 3.0, Docker Containers and Azure Kubernetes Services. Supports Visual Studio, VS for Mac and CLI based environments with Docker CLI, dotnet CLI, VS Code or any other code editor.
dotnet/roslyn
The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
icsharpcode/ILSpy
.NET Decompiler with support for PDB generation, ReadyToRun, Metadata (&more) - cross-platform!
AvaloniaUI/Avalonia
Avalonia is a cross-platform XAML-based UI framework providing a flexible styling system and supporting a wide range of Operating Systems such as Windows via .NET Framework and .NET Core, Linux via Xorg, macOS

Version History

Version Downloads Last updated
4.14.7 83,612 10/14/2020
4.14.6 279,178 9/30/2020
4.14.5 3,937,605 7/1/2020
4.14.4 482,362 6/24/2020
4.14.3 442,218 6/18/2020
4.14.2 255,632 6/16/2020
4.14.1 3,826,682 4/28/2020
4.14.0 323,161 4/24/2020
4.13.1 17,222,899 10/19/2019
4.13.0 4,978,707 8/31/2019
4.12.0 7,254,209 6/20/2019
4.11.0 2,472,787 5/27/2019
4.11.0-rc2 3,960 5/27/2019
4.11.0-rc1 130,929 4/19/2019
4.10.1 17,594,304 12/3/2018
4.10.0 8,795,700 9/8/2018
4.9.0 5,249,019 7/13/2018
4.8.3 3,217,760 6/9/2018
4.8.2 7,791,936 2/23/2018
4.8.1 3,270,839 1/8/2018
4.8.0 956,680 12/24/2017
4.8.0-rc1 41,095 12/8/2017
4.7.145 4,615,881 11/6/2017
4.7.142 2,084,101 10/10/2017
4.7.137 584,532 10/3/2017
4.7.127 562,124 9/25/2017
4.7.99 4,063,587 7/17/2017
4.7.63 1,216,105 6/21/2017
4.7.58 61,211 6/20/2017
4.7.49 325,198 6/18/2017
4.7.46 38,573 6/18/2017
4.7.25 956,590 6/2/2017
4.7.12 187,006 5/30/2017
4.7.11 4,064 5/30/2017
4.7.10 862,037 5/6/2017
4.7.9 319,802 4/29/2017
4.7.8 1,300,760 3/26/2017
4.7.7 24,393 3/25/2017
4.7.1 1,223,494 2/28/2017
4.7.0 1,874,577 2/22/2017
4.6.62-alpha 4,886 2/21/2017
4.6.39-alpha 11,231 2/18/2017
4.6.38-alpha 656,552 8/20/2016
4.6.36-alpha 195,553 7/20/2016
4.6.25-alpha 93,384 6/6/2016
4.5.30 2,146,683 1/9/2017
4.5.29 870,641 12/10/2016
4.5.28 1,142,496 11/10/2016
4.5.23 849,968 10/11/2016
4.5.22 552,917 9/20/2016
4.5.21 1,202,462 8/12/2016
4.5.20 8,653 8/12/2016
4.5.19 61,896 8/10/2016
4.5.18 5,154 8/10/2016
4.5.16 556,898 7/18/2016
4.5.13 145,871 7/11/2016
4.5.10 443,492 6/21/2016
4.5.9 437,682 6/9/2016
4.5.9-alpha 8,638 5/22/2016
4.5.8 590,408 5/26/2016
4.5.7 6,476 5/26/2016
4.5.7-alpha 3,325 5/22/2016
4.5.6-alpha 3,433 5/22/2016
4.5.3 468,402 5/25/2016
4.5.0 170,110 5/24/2016
4.2.1510.2205 5,336,924 10/22/2015
4.2.1507.118 2,002,848 7/1/2015
4.2.1506.2515 95,276 6/25/2015
4.2.1506.2016 56,985 6/20/2015
4.2.1502.911 2,123,735 2/9/2015
4.2.1409.1722 1,489,504 9/17/2014
4.2.1408.717 700,097 8/7/2014
4.2.1408.619 24,289 8/6/2014
4.2.1402.2112 1,745,915 2/21/2014
4.2.1312.1622 672,959 12/17/2013
4.2.1312.1621 4,711 12/16/2013
4.2.1312.1615 5,270 12/16/2013
4.2.1312.1416 17,228 12/14/2013
4.2.1312.1323 4,973 12/14/2013
4.2.1312.1319 20,997 12/13/2013
4.1.1311.615 264,050 11/18/2013
4.1.1309.1617 441,615 9/16/2013
4.1.1309.919 249,172 9/9/2013
4.1.1309.801 10,243 9/8/2013
4.1.1309.800 4,431 9/8/2013
4.1.1308.2321 698,175 8/23/2013
4.1.1308.2316 6,372 8/23/2013
4.1.1308.2120 418,692 8/21/2013
4.0.10827 2,993,184 2/9/2011
3.1.416.3 127,797 2/9/2011