UnitTestEx.Azure.Functions
7.0.0
dotnet add package UnitTestEx.Azure.Functions --version 7.0.0
NuGet\Install-Package UnitTestEx.Azure.Functions -Version 7.0.0
<PackageReference Include="UnitTestEx.Azure.Functions" Version="7.0.0" />
<PackageVersion Include="UnitTestEx.Azure.Functions" Version="7.0.0" />
<PackageReference Include="UnitTestEx.Azure.Functions" />
paket add UnitTestEx.Azure.Functions --version 7.0.0
#r "nuget: UnitTestEx.Azure.Functions, 7.0.0"
#:package UnitTestEx.Azure.Functions@7.0.0
#addin nuget:?package=UnitTestEx.Azure.Functions&version=7.0.0
#tool nuget:?package=UnitTestEx.Azure.Functions&version=7.0.0
UnitTestEx.Azure.Functions
Azure Functions v4 isolated-worker invocation testing on .NET 8/9/10/11. Package version 7.0.0; core UnitTestEx is a dependency.
Quick start
using System;
using System.Net.Http;
using UnitTestEx;
using var mock = MockHttpClientFactory.Create();
mock.CreateClient("XXX", new Uri("https://d365test"))
.Request(HttpMethod.Get, "products/abc")
.Respond.WithJson(new { id = "Abc", description = "A blue carrot" });
using var test = FunctionTester.Create<ProductFunction>();
test.ReplaceHttpClientFactory(mock);
test.HttpTrigger<ProductFunction>()
.Run(f => f.Run(test.CreateHttpRequest(HttpMethod.Get, "product/abc"), "abc"))
.AssertOK();
This uses the repository's ProductFunction sample and named downstream HTTP client. Use your application's function type, signature, client details and route. The tester executes the normal application entry point and captures the host at Build() without starting the worker/runtime. No test-only Program or BuildHost method is required. Configure DI/mocks before the first invocation.
HttpTrigger, ServiceBusTrigger and Trigger validate worker trigger attributes and run the worker middleware pipeline. A passing invocation does not prove runtime indexing, binding conversion, broker delivery or final HTTP rendering. Use Aspire/Core Tools with a backend for those claims. Dispose the tester to release its trigger scopes and host.
For xUnit pass output: output to FunctionTester.Create<T>(), or establish ambient UnitTestBase context. Keep your framework/runner packages, not the retired UnitTestEx framework adapters.
AI assistance and documentation
The package includes skills/unittestex-azure-functions/SKILL.md. Restore delivers it to the NuGet cache, not automatically into an agent's active skills. See discovery and optional installation.
| 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
- Azure.Messaging.EventGrid (>= 5.0.0)
- Azure.Messaging.EventHubs (>= 5.12.2)
- Azure.Messaging.ServiceBus (>= 7.20.1)
- Microsoft.Azure.Functions.Worker.Extensions.Http (>= 3.2.0)
- Microsoft.Azure.Functions.Worker.Extensions.ServiceBus (>= 5.22.0)
- UnitTestEx (>= 7.0.0)
-
net11.0
- Azure.Messaging.EventGrid (>= 5.0.0)
- Azure.Messaging.EventHubs (>= 5.12.2)
- Azure.Messaging.ServiceBus (>= 7.20.1)
- Microsoft.Azure.Functions.Worker.Extensions.Http (>= 3.2.0)
- Microsoft.Azure.Functions.Worker.Extensions.ServiceBus (>= 5.22.0)
- UnitTestEx (>= 7.0.0)
-
net8.0
- Azure.Messaging.EventGrid (>= 5.0.0)
- Azure.Messaging.EventHubs (>= 5.12.2)
- Azure.Messaging.ServiceBus (>= 7.20.1)
- Microsoft.Azure.Functions.Worker.Extensions.Http (>= 3.2.0)
- Microsoft.Azure.Functions.Worker.Extensions.ServiceBus (>= 5.22.0)
- UnitTestEx (>= 7.0.0)
-
net9.0
- Azure.Messaging.EventGrid (>= 5.0.0)
- Azure.Messaging.EventHubs (>= 5.12.2)
- Azure.Messaging.ServiceBus (>= 7.20.1)
- Microsoft.Azure.Functions.Worker.Extensions.Http (>= 3.2.0)
- Microsoft.Azure.Functions.Worker.Extensions.ServiceBus (>= 5.22.0)
- UnitTestEx (>= 7.0.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on UnitTestEx.Azure.Functions:
| Package | Downloads |
|---|---|
|
CoreEx.UnitTesting.Azure.Functions
CoreEx UnitTesting (UnitTestEx) extras. |
|
|
UnitTestEx.Azure.Functions.Durable
Preview fluent FunctionTester integration, activity mocks and diagnostics for the in-memory Durable Task test host, plus a separate method-level virtual-time context. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 7.0.0 | 136 | 11/15/2026 |
| 6.1.0 | 340 | 11/5/2026 |
| 6.0.0 | 191 | 11/2/2026 |
| 5.12.0 | 744 | 9/29/2026 |
| 5.11.1 | 362 | 9/4/2026 |
| 5.11.0 | 1,581 | 5/14/2026 |
| 5.10.0 | 1,458 | 3/29/2026 |
| 5.9.2 | 170 | 2/16/2026 |
| 5.9.1 | 151 | 2/11/2026 |
| 5.9.0 | 7,264 | 12/11/2025 |
| 5.8.0 | 310 | 12/5/2025 |
| 5.7.0 | 323 | 11/14/2025 |
| 5.6.3 | 222 | 11/7/2025 |
| 5.6.2 | 202 | 11/1/2025 |
| 5.6.1 | 211 | 11/1/2025 |
| 5.6.0 | 326 | 8/19/2025 |
| 5.5.0 | 339 | 5/1/2025 |
| 5.4.6 | 1,092 | 3/23/2025 |
| 5.4.5 | 289 | 3/20/2025 |
| 5.4.4 | 411 | 3/8/2025 |