UnitTestEx 7.0.0

dotnet add package UnitTestEx --version 7.0.0
                    
NuGet\Install-Package UnitTestEx -Version 7.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="UnitTestEx" Version="7.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="UnitTestEx" Version="7.0.0" />
                    
Directory.Packages.props
<PackageReference Include="UnitTestEx" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add UnitTestEx --version 7.0.0
                    
#r "nuget: UnitTestEx, 7.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.
#:package UnitTestEx@7.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=UnitTestEx&version=7.0.0
                    
Install as a Cake Addin
#tool nuget:?package=UnitTestEx&version=7.0.0
                    
Install as a Cake Tool

UnitTestEx

API and Generic Host testing for .NET 8/9/10/11 with dependency overrides, HttpClient mocking, fluent assertions and captured logging.

Quick start

Install UnitTestEx 7.0.0 alongside your NUnit, MSTest or xUnit framework and runner packages.

using UnitTestEx;

using var test = GenericTester.Create();
test.Run(() => 1).AssertSuccess().AssertValue(1);

ApiTester.Create<TEntryPoint>() hosts ASP.NET Core through WebApplicationFactory; controller expressions still exercise the HTTP pipeline. Use GenericTester for DI-composed code without an API.

Framework detection supports xUnit v2/v3, NUnit v4/v5 and MSTest v3/v4. Separate UnitTestEx adapter packages are not required. For xUnit pass the per-test helper as output, or supply it to UnitTestEx.Abstractions.UnitTestBase. Explicit implementor factories own output handling. Dispose testers and avoid concurrent reuse of shared mutable fixtures.

AI assistance

This package includes skills/unittestex/SKILL.md, with v7 API/generic testing, mocking, output and fixture guidance. Restore delivers the file to the NuGet cache; activation depends on the agent/tool. See discovery and optional installation. No build target installs instructions into your project.

Documentation

Other packages: UnitTestEx.Azure.Functions for isolated-worker invocation, UnitTestEx.Aspire for real multi-process integration, and optional UnitTestEx.Azure.Functions.Durable for preview orchestration testing.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser 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.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed.  net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (7)

Showing the top 5 NuGet packages that depend on UnitTestEx:

Package Downloads
UnitTestEx.NUnit

UnitTestEx NUnit Test Extensions.

UnitTestEx.Xunit

UnitTestEx Xunit Test Extensions.

UnitTestEx.MSTest

UnitTestEx MSTest Test Extensions.

CoreEx.UnitTesting

Core .NET extensions and abstractions for the testing of backend services.

UnitTestEx.Azure.Functions

UnitTestEx Test Extensions.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
7.0.0 0 11/15/2026
6.1.0 638 11/5/2026
6.0.0 298 11/2/2026
5.12.0 1,071 9/29/2026
5.11.1 541 9/4/2026
5.11.0 2,816 5/14/2026
5.10.0 1,667 3/29/2026
5.9.2 541 2/16/2026
5.9.1 395 2/11/2026
5.9.0 7,644 12/11/2025
5.8.0 470 12/5/2025
5.7.0 508 11/14/2025
5.6.3 396 11/7/2025
5.6.2 401 11/1/2025
5.6.1 382 11/1/2025
5.6.0 697 8/19/2025
5.5.0 3,047 5/1/2025
5.4.6 1,524 3/23/2025
5.4.5 481 3/20/2025
5.4.4 690 3/8/2025
Loading failed