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
                    
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.Azure.Functions" Version="7.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="UnitTestEx.Azure.Functions" Version="7.0.0" />
                    
Directory.Packages.props
<PackageReference Include="UnitTestEx.Azure.Functions" />
                    
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.Azure.Functions --version 7.0.0
                    
#r "nuget: UnitTestEx.Azure.Functions, 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.Azure.Functions@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.Azure.Functions&version=7.0.0
                    
Install as a Cake Addin
#tool nuget:?package=UnitTestEx.Azure.Functions&version=7.0.0
                    
Install as a Cake Tool

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 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 (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
Loading failed