Moq 3.1.416.3

Moq (pronounced "Mock-you" or just "Mock") is the only mocking library for .NET developed from scratch to take full advantage of .NET 3.5 (i.e. Linq expression trees) and C# 3.0 features (i.e. lambda expressions) that make it the most productive, type-safe and refactoring-friendly mocking library available

There is a newer version of this package available.
See the version list below for details.
Install-Package Moq -Version 3.1.416.3
dotnet add package Moq --version 3.1.416.3
<PackageReference Include="Moq" Version="3.1.416.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Moq --version 3.1.416.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Moq, 3.1.416.3"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Moq as a Cake Addin
#addin nuget:?package=Moq&version=3.1.416.3

// Install Moq as a Cake Tool
#tool nuget:?package=Moq&version=3.1.416.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Dependencies

This package has no dependencies.

NuGet packages (549)

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 (822)

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

Repository Stars
microsoft/PowerToys
Windows system utilities to maximize productivity
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 5, 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!

Version History

Version Downloads Last updated
4.16.1 3,095,030 2/23/2021
4.16.0 2,600,771 1/16/2021
4.15.2 3,439,601 11/26/2020
4.15.1 1,819,923 11/10/2020
4.14.7 2,828,585 10/14/2020
4.14.6 1,324,616 9/30/2020
4.14.5 9,559,862 7/1/2020
4.14.4 863,941 6/24/2020
4.14.3 782,741 6/18/2020
4.14.2 489,209 6/16/2020
4.14.1 6,474,513 4/28/2020
4.14.0 547,234 4/24/2020
4.13.1 24,192,150 10/19/2019
4.13.0 6,252,737 8/31/2019
4.12.0 8,723,949 6/20/2019
4.11.0 2,974,410 5/27/2019
4.11.0-rc2 4,351 5/27/2019
4.11.0-rc1 152,531 4/19/2019
4.10.1 20,770,701 12/3/2018
4.10.0 9,984,576 9/8/2018
4.9.0 6,069,045 7/13/2018
4.8.3 3,684,003 6/9/2018
4.8.2 8,833,666 2/23/2018
4.8.1 3,701,109 1/8/2018
4.8.0 1,158,154 12/24/2017
4.8.0-rc1 42,606 12/8/2017
4.7.145 5,141,675 11/6/2017
4.7.142 2,202,558 10/10/2017
4.7.137 710,149 10/3/2017
4.7.127 621,088 9/25/2017
4.7.99 4,426,094 7/17/2017
4.7.63 1,322,965 6/21/2017
4.7.58 64,159 6/20/2017
4.7.49 338,299 6/18/2017
4.7.46 46,694 6/18/2017
4.7.25 1,034,752 6/2/2017
4.7.12 203,534 5/30/2017
4.7.11 4,423 5/30/2017
4.7.10 932,359 5/6/2017
4.7.9 340,774 4/29/2017
4.7.8 1,408,718 3/26/2017
4.7.7 24,966 3/25/2017
4.7.1 1,294,770 2/28/2017
4.7.0 2,692,762 2/22/2017
4.6.62-alpha 5,153 2/21/2017
4.6.39-alpha 12,279 2/18/2017
4.6.38-alpha 671,462 8/20/2016
4.6.36-alpha 199,922 7/20/2016
4.6.25-alpha 96,944 6/6/2016
4.5.30 2,475,282 1/9/2017
4.5.29 938,092 12/10/2016
4.5.28 1,303,930 11/10/2016
4.5.23 911,017 10/11/2016
4.5.22 610,708 9/20/2016
4.5.21 1,285,221 8/12/2016
4.5.20 8,987 8/12/2016
4.5.19 65,297 8/10/2016
4.5.18 5,679 8/10/2016
4.5.16 613,701 7/18/2016
4.5.13 154,740 7/11/2016
4.5.10 481,513 6/21/2016
4.5.9 479,432 6/9/2016
4.5.9-alpha 9,081 5/22/2016
4.5.8 613,480 5/26/2016
4.5.7 7,117 5/26/2016
4.5.7-alpha 3,578 5/22/2016
4.5.6-alpha 3,762 5/22/2016
4.5.3 564,867 5/25/2016
4.5.0 190,623 5/24/2016
4.2.1510.2205 5,848,101 10/22/2015
4.2.1507.118 2,170,331 7/1/2015
4.2.1506.2515 103,568 6/25/2015
4.2.1506.2016 59,440 6/20/2015
4.2.1502.911 2,276,977 2/9/2015
4.2.1409.1722 1,621,767 9/17/2014
4.2.1408.717 739,975 8/7/2014
4.2.1408.619 24,573 8/6/2014
4.2.1402.2112 1,848,255 2/21/2014
4.2.1312.1622 720,811 12/17/2013
4.2.1312.1621 4,986 12/16/2013
4.2.1312.1615 5,541 12/16/2013
4.2.1312.1416 17,694 12/14/2013
4.2.1312.1323 5,495 12/14/2013
4.2.1312.1319 27,107 12/13/2013
4.1.1311.615 274,426 11/18/2013
4.1.1309.1617 483,797 9/16/2013
4.1.1309.919 254,418 9/9/2013
4.1.1309.801 10,825 9/8/2013
4.1.1309.800 4,730 9/8/2013
4.1.1308.2321 788,488 8/23/2013
4.1.1308.2316 6,974 8/23/2013
4.1.1308.2120 541,599 8/21/2013
4.0.10827 3,294,903 2/9/2011
3.1.416.3 150,661 2/9/2011
Show less