UnitTestEx 7.0.0
dotnet add package UnitTestEx --version 7.0.0
NuGet\Install-Package UnitTestEx -Version 7.0.0
<PackageReference Include="UnitTestEx" Version="7.0.0" />
<PackageVersion Include="UnitTestEx" Version="7.0.0" />
<PackageReference Include="UnitTestEx" />
paket add UnitTestEx --version 7.0.0
#r "nuget: UnitTestEx, 7.0.0"
#:package UnitTestEx@7.0.0
#addin nuget:?package=UnitTestEx&version=7.0.0
#tool nuget:?package=UnitTestEx&version=7.0.0
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 | Versions 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. |
-
net10.0
- Microsoft.AspNetCore.Mvc.Testing (>= 10.0.0)
- Microsoft.AspNetCore.Routing (>= 2.3.0)
- Moq (>= 4.20.70)
- System.Memory.Data (>= 10.0.0)
- YamlDotNet (>= 16.0.0)
-
net11.0
- Microsoft.AspNetCore.Mvc.Testing (>= 11.0.0)
- Microsoft.AspNetCore.Routing (>= 2.3.0)
- Moq (>= 4.20.70)
- System.Memory.Data (>= 11.0.0)
- YamlDotNet (>= 16.0.0)
-
net8.0
- Microsoft.AspNetCore.Mvc.Testing (>= 8.0.7)
- Microsoft.AspNetCore.Routing (>= 2.3.0)
- Moq (>= 4.20.70)
- System.Memory.Data (>= 8.0.0)
- YamlDotNet (>= 16.0.0)
-
net9.0
- Microsoft.AspNetCore.Mvc.Testing (>= 9.0.0)
- Microsoft.AspNetCore.Routing (>= 2.3.0)
- Moq (>= 4.20.70)
- System.Memory.Data (>= 9.0.0)
- YamlDotNet (>= 16.0.0)
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 |