FluentAssertions.Web.v8 3.0.2

dotnet add package FluentAssertions.Web.v8 --version 3.0.2
                    
NuGet\Install-Package FluentAssertions.Web.v8 -Version 3.0.2
                    
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="FluentAssertions.Web.v8" Version="3.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FluentAssertions.Web.v8" Version="3.0.2" />
                    
Directory.Packages.props
<PackageReference Include="FluentAssertions.Web.v8" />
                    
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 FluentAssertions.Web.v8 --version 3.0.2
                    
#r "nuget: FluentAssertions.Web.v8, 3.0.2"
                    
#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 FluentAssertions.Web.v8@3.0.2
                    
#: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=FluentAssertions.Web.v8&version=3.0.2
                    
Install as a Cake Addin
#tool nuget:?package=FluentAssertions.Web.v8&version=3.0.2
                    
Install as a Cake Tool

FluentAssertions.Web.v8

A FluentAssertions extension over the HttpResponseMessage object. It provides assertions specific to HTTP responses and outputs rich error messages that include the HTTP Request and Response, so test failures show the whole conversation and less time with debugging is spent.

This package targets the commercial versions of FluentAssertions (>= 8.0.0). If you are using FluentAssertions < 8.0.0, use FluentAssertions.Web.

Install

dotnet add package FluentAssertions.Web.v8

Example

The assertions are identical to the FOSS flavour:

[Fact]
public async Task Post_ReturnsOk()
{
    // Arrange
    var client = _factory.CreateClient();

    // Act
    var response = await client.PostAsync("/api/comments", new StringContent(
    """
    {
      "author": "John",
      "content": "Hey, you..."
    }
    """, Encoding.UTF8, "application/json"));

    // Assert
    response.Should().Be200Ok();
}

When the assertion fails, the test output contains the expected and actual status codes followed by the complete HTTP response and the originating HTTP request.

Documentation

The shared Assertions.Web documentation describes the assertions at a glance, the failure output, the configuration and links to the full API and the worked examples in the repository readme.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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-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 was computed.  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 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on FluentAssertions.Web.v8:

Package Downloads
mu88.Shared.Testing

This is a little helper NuGet package providing reusable test infrastructure shared across mu88's .NET apps: - Resolve pinned Testcontainers image references from a Renovate-trackable Dockerfile - Start and connect to a Testcontainers-based Playwright browser instance - Build an app's Docker image via Microsoft.NET.Build.Containers for use in system tests - Assert that a running app/container is healthy and free of warnings in its logs

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.2 0 11/14/2026
3.0.1 62 11/12/2026
3.0.0 2,515 10/9/2026
2.0.5 387 10/7/2026
2.0.4 393 10/2/2026
2.0.3 23,037 7/30/2026
2.0.2 193 7/28/2026
2.0.1 163 7/28/2026
2.0.0 318 7/23/2026
1.9.9 891 7/23/2026
1.9.5 110,153 5/3/2025
1.8.0 31,951 1/20/2025
0.0.0-ci-286 94 10/2/2026
0.0.0-ci-285 101 10/2/2026
0.0.0-ci-252 123 7/23/2026