Moq 4.15.1

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

Built from https://github.com/moq/moq4/tree/ee071f6e0

Install-Package Moq -Version 4.15.1
dotnet add package Moq --version 4.15.1
<PackageReference Include="Moq" Version="4.15.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Moq --version 4.15.1
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 (506)

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
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.
Ninject.MockingKernel.Moq
Automock implementation for Moq using Ninject to create the objects under test.

GitHub repositories (737)

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.15.1 202,389 11/10/2020
4.14.7 864,864 10/14/2020
4.14.6 556,494 9/30/2020
4.14.5 5,193,638 7/1/2020
4.14.4 571,180 6/24/2020
4.14.3 513,972 6/18/2020
4.14.2 295,647 6/16/2020
4.14.1 4,341,623 4/28/2020
4.14.0 368,902 4/24/2020
4.13.1 18,596,255 10/19/2019
4.13.0 5,241,486 8/31/2019
4.12.0 7,554,711 6/20/2019
4.11.0 2,565,514 5/27/2019
4.11.0-rc2 4,094 5/27/2019
4.11.0-rc1 134,538 4/19/2019
4.10.1 18,207,241 12/3/2018
4.10.0 9,029,448 9/8/2018
4.9.0 5,385,904 7/13/2018
4.8.3 3,300,055 6/9/2018
4.8.2 7,985,001 2/23/2018
4.8.1 3,344,686 1/8/2018
4.8.0 990,254 12/24/2017
4.8.0-rc1 41,333 12/8/2017
4.7.145 4,718,385 11/6/2017
4.7.142 2,110,402 10/10/2017
4.7.137 603,677 10/3/2017
4.7.127 572,682 9/25/2017
4.7.99 4,144,822 7/17/2017
4.7.63 1,235,056 6/21/2017
4.7.58 61,677 6/20/2017
4.7.49 327,846 6/18/2017
4.7.46 39,947 6/18/2017
4.7.25 973,453 6/2/2017
4.7.12 189,709 5/30/2017
4.7.11 4,110 5/30/2017
4.7.10 873,263 5/6/2017
4.7.9 324,086 4/29/2017
4.7.8 1,321,749 3/26/2017
4.7.7 24,482 3/25/2017
4.7.1 1,235,344 2/28/2017
4.7.0 2,001,935 2/22/2017
4.6.62-alpha 4,925 2/21/2017
4.6.39-alpha 11,454 2/18/2017
4.6.38-alpha 659,754 8/20/2016
4.6.36-alpha 196,120 7/20/2016
4.6.25-alpha 94,049 6/6/2016
4.5.30 2,202,771 1/9/2017
4.5.29 878,682 12/10/2016
4.5.28 1,170,837 11/10/2016
4.5.23 861,691 10/11/2016
4.5.22 562,730 9/20/2016
4.5.21 1,219,863 8/12/2016
4.5.20 8,696 8/12/2016
4.5.19 62,515 8/10/2016
4.5.18 5,224 8/10/2016
4.5.16 566,984 7/18/2016
4.5.13 148,210 7/11/2016
4.5.10 449,773 6/21/2016
4.5.9 444,652 6/9/2016
4.5.9-alpha 8,703 5/22/2016
4.5.8 593,830 5/26/2016
4.5.7 6,564 5/26/2016
4.5.7-alpha 3,358 5/22/2016
4.5.6-alpha 3,465 5/22/2016
4.5.3 482,291 5/25/2016
4.5.0 173,245 5/24/2016
4.2.1510.2205 5,434,550 10/22/2015
4.2.1507.118 2,041,678 7/1/2015
4.2.1506.2515 96,566 6/25/2015
4.2.1506.2016 57,477 6/20/2015
4.2.1502.911 2,149,774 2/9/2015
4.2.1409.1722 1,512,361 9/17/2014
4.2.1408.717 706,350 8/7/2014
4.2.1408.619 24,316 8/6/2014
4.2.1402.2112 1,767,865 2/21/2014
4.2.1312.1622 682,477 12/17/2013
4.2.1312.1621 4,741 12/16/2013
4.2.1312.1615 5,297 12/16/2013
4.2.1312.1416 17,281 12/14/2013
4.2.1312.1323 5,016 12/14/2013
4.2.1312.1319 22,282 12/13/2013
4.1.1311.615 266,370 11/18/2013
4.1.1309.1617 447,592 9/16/2013
4.1.1309.919 249,882 9/9/2013
4.1.1309.801 10,305 9/8/2013
4.1.1309.800 4,467 9/8/2013
4.1.1308.2321 718,084 8/23/2013
4.1.1308.2316 6,460 8/23/2013
4.1.1308.2120 439,807 8/21/2013
4.0.10827 3,066,251 2/9/2011
3.1.416.3 134,549 2/9/2011