
NUnit.org
What Is NUnit? NUnit is a unit-testing framework for all .Net languages. Initially ported from JUnit, the current production release, version 3, has been completely rewritten with many new features and support for a wide range of .NET platforms.
NUnit Documentation Site | NUnit Docs
This web site contains the documentation for all active NUnit projects as well as developer documentation for those working on NUnit or wishing to do so. User Documentation. NUnit covers the core tools of NUnit, including the framework, NUnitLite, and the console runner. NUnit VS Adapter covers the test adapters for Visual Studio and .Net.
Downloads - NUnit
Mar 31, 2022 · The preferred way to download NUnit is through the NuGet package manager. The latest releases of can always be found on the relevant GitHub releases pages. Latest NUnit Releases
NUnit Documentation
This documentation covers NUnit 3.0 and higher. Where applicable, we have marked sections with the version in which a feature first appeared. If you are new to NUnit, we suggest you begin by reading the Getting Started section of this site.
Installation | NUnit Docs
The NUnitLite approach provides a way to run NUnit tests without a full install of the NUnit runner and test engine assemblies. Only the framework and a small runner program are installed. If you want to experiment with NUnit or debug something in NUnit, this can be a helpful choice.
Tips and Tricks | NUnit Docs
By default the NUnit adapter will "Kill" the Visual Studio Test Execution engine after each run. Visual Studio 2013 and later has a new setting under its top menu, Test | Test Settings | Keep Test Execution Engine Running .
.NET Core | NUnit Docs
More information and getting started tutorials are available for NUnit and .NET Core targeting C#, F# and Visual Basic in the .NET Core documentation's Unit Testing in .NET Core page. The other information on this page is older documentation.
Running Tests | NUnit Docs
All of these use different parts of the NUnit ecosystem to run your tests. The Microsoft tools use the NUnit3TestAdapter, whereas Jetbrains Rider use the NUnit.Engine. To start using NUnit with these tools, see the Installation section .
SetUp and TearDown | NUnit Docs
SetUp and TearDown Attribute Usage. SetUpAttribute is now used exclusively for per-test setup.; TearDownAttribute is now used exclusively for per-test teardown.; OneTimeSetUpAttribute is used for one-time setup per test-run. If you run n tests, this event will only occur once.; OneTimeTearDownAttribute is used for one-time teardown per test-run. If you run n tests, this …
Towards NUnit Version 4
NUnit 4 has been long-awaited, and we are now starting to see its outline taking shape. With the introduction of NUnit 4, we are also making changes to the release cadence, shifting towards a Semver based versioning scheme.