Testing.Commons.NUnit 5.0.0

.NET 6.0
dotnet add package Testing.Commons.NUnit --version 5.0.0
NuGet\Install-Package Testing.Commons.NUnit -Version 5.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Testing.Commons.NUnit" Version="5.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Testing.Commons.NUnit --version 5.0.0
#r "nuget: Testing.Commons.NUnit, 5.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Testing.Commons.NUnit as a Cake Addin
#addin nuget:?package=Testing.Commons.NUnit&version=5.0.0

// Install Testing.Commons.NUnit as a Cake Tool
#tool nuget:?package=Testing.Commons.NUnit&version=5.0.0


Testing.Commons contains classes and extensions that help testing code in general and more specific areas such as configuration and web artifacts.

testing.commons build


For some time now I have been testing code from different applications using different testing frameworks. Testing frameworks are awesome (some more than others) but they cannot cover all cases I found and sometimes they should not even try.

When some help to perform certain tasks was needed helpers, techniques and extensions have been developed or found and borrowed. I want to share some of those and maybe people can contribute with their own useful trickery.


Testing.Commons (the project) is made up of three (so far) differentiated libraries


Testing.Commons (the library) contains shared artifacts that can be applied to any testing framework. It contains no external dependencies outside the .NET Framework itself.


Most of the work that has given born to this project has been developed using NUnit. NUnit offers multiple extensibility points of which I have taken advantage to extend what the framework can do for me. This library will contain NUnit-dependant code, mostly custom constraints.


DEPRECATED <br/> Having moved to target .NET 6 (previously .NET Core), Testing.Commons.ServiceStack has been deprecated and will not be receiving further improvements.

ServiceStack has turned into my default weapon of choice when developing services.

Although it does not receive the focus on testing like other frameworks (such as NancyFx), with very little extra work, you can test your services end to end (should you want to do so) or test a single feature of your services in an integrated manner.

Testing.Commons.ServiceStack provides that extra work, so that you only focus in what is important: the correctness of your services.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
5.0.0 103 9/11/2023
4.2.0 5,710 3/14/2018 6,795 8/22/2017
4.1.0 1,112 5/11/2017 1,376 4/19/2017
4.0.0 980 4/16/2017
3.1.0 1,188 7/19/2016 1,016 7/19/2016
3.0.0 1,006 7/19/2016 1,166 3/16/2016 1,218 10/22/2015
2.2.1 1,148 9/7/2015
2.2.0 1,073 9/7/2015
2.1.1 1,063 9/3/2015
2.1.0 1,093 8/26/2015
2.0.0 1,115 7/21/2015
1.9.1 4,588 4/18/2014
1.9.0 1,353 4/15/2014
1.8.0 1,288 10/19/2013
1.7.1 1,358 3/14/2013
1.7.0 1,243 3/12/2013
1.6.0 1,647 11/4/2012
1.5.0 1,417 8/28/2012
1.4.0 1,400 8/26/2012
1.3.0 1,335 8/14/2012
1.2.0 1,751 12/7/2011
1.1.0 1,569 10/31/2011
0.8.0 1,540 10/16/2011
0.1.0 1,486 10/4/2011