NUnit features a fluent assert syntax, parameterized, generic and theory tests and is user-extensible. A number of runners, both from the NUnit project and by third parties, are able to execute NUnit tests.

Version 2.6 is the seventh major release of this well-known and well-tested programming tool.

This package includes only the framework assembly. You will need to install the NUnit.Runners package unless you are using a third-party runner.

There is a newer version of this package available.
See the version list below for details.
Install-Package NUnit -Version
dotnet add package NUnit --version
<PackageReference Include="NUnit" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NUnit --version
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: NUnit,"
#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 NUnit as a Cake Addin
#addin nuget:?package=NUnit&version=

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

Release Notes

Version 2.6 is the seventh major release of NUnit.

Unlike earlier versions, this package includes only the framework assembly. You will need to install the NUnit.Runners package unless you are using a third-party runner.

The nunit.mocks assembly is now provided by the NUnit.Mocks package. The pnunit.framework assembly is provided by the pNUnit package.


This package has no dependencies.

NuGet packages (905)

Showing the top 5 NuGet packages that depend on NUnit:

Package Downloads
Package to use SpecFlow with NUnit 3.13 and later
NUnitLite provides a simple way to run NUnit tests, without the overhead of a full NUnit installation. It is suitable for projects that want to have a quick way to run tests using a console runner and don't need all the features of the NUnit engine and console runner. Supported platforms: - .NET Framework 3.5+ - .NET Standard 2.0+ - .NET Core 2.1+ How to use this package: 1. Create a console application for your tests and delete the generated class containing Main(). 2. Install the NUnitLite package, which creates a new Main() as well as adding a reference to NUnitLite. This will also bring in the NUnit package, which adds a reference to the NUnit framework to your project. 3. Add your tests to the test project and simply start the project to execute them.
By leveraging some features of NUnit3, this extension turns AutoFixture into a declarative framework for writing unit tests. In many ways it becomes a unit testing DSL (Domain Specific Language).
MassTransit Test Framework (NUnit); MassTransit is a message-based distributed application framework for .NET
FsUnit is a set of extensions that add special testing syntax to NUnit.

GitHub repositories (983)

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

Repository Stars
Windows system utilities to maximize productivity
Launcher for Windows, an alternative to Alfred and Launchy.
.NET Decompiler with support for PDB generation, ReadyToRun, Metadata (&more) - cross-platform!
.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
Open Source real-time strategy game engine for early Westwood games such as Command & Conquer: Red Alert written in C# using SDL and OpenGL. Runs on Windows, Linux, *BSD and Mac OS X.

Version History

Version Downloads Last updated
3.13.2 806,517 4/27/2021
3.13.1 2,695,755 2/1/2021
3.13.0 922,664 1/7/2021
3.12.0 33,469,735 5/15/2019
3.11.0 16,701,070 10/7/2018
3.10.1 11,933,330 3/13/2018
3.10.0 259,735 3/13/2018
3.9.0 6,354,261 11/10/2017
3.8.1 13,174,618 8/29/2017
3.8.0 222,869 8/28/2017
3.7.1 2,929,537 6/6/2017
3.7.0 544,777 5/30/2017
3.6.1 3,640,017 2/26/2017
3.6.0 1,745,522 1/10/2017
3.5.0 2,958,225 10/4/2016
3.4.1 1,896,276 6/30/2016
3.4.0 127,098 6/25/2016
3.2.1 1,016,375 4/19/2016
3.2.0 735,077 3/5/2016
3.0.1 1,473,774 12/2/2015
3.0.0 624,796 11/16/2015
3.0.0-rc-3 7,165 11/14/2015
3.0.0-rc-2 7,744 11/8/2015
3.0.0-rc 8,705 11/1/2015
3.0.0-beta-5 15,064 10/17/2015
3.0.0-beta-4 13,403 8/25/2015
3.0.0-beta-3 13,654 7/15/2015
3.0.0-beta-2 19,070 5/13/2015
3.0.0-beta-1 11,071 3/26/2015
3.0.0-alpha-5 20,292 1/31/2015
3.0.0-alpha-4 10,820 12/31/2014
3.0.0-alpha-3 9,756 11/29/2014
3.0.0-alpha-2 16,369 11/3/2014
3.0.0-alpha 20,126 9/23/2014
2.7.1 105,920 8/21/2019
2.7.0 175,110 8/10/2018
2.6.7 90,399 7/7/2018
2.6.6 25,361 6/7/2018
2.6.5 66,688 4/20/2018
2.6.4 9,622,085 12/17/2014
2.6.3 4,300,823 10/11/2013
2.6.2 1,934,852 10/23/2012
2.6.1 333,700 8/5/2012 516,316 2/24/2012 606,587 4/25/2011 72,910 2/9/2011 280,448 1/7/2011
Show less