AwesomeAssertions.Web 3.0.2

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

AwesomeAssertions.Web

An AwesomeAssertions 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.

Install

dotnet add package AwesomeAssertions.Web

Example

The assertions and the Should()/And syntax are identical to the FluentAssertions 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 AwesomeAssertions.Web:

Package Downloads
Ark.Tools.Reqnroll

Reqnroll utilities

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 409 11/12/2026
3.0.0 45,238 10/9/2026
2.0.5 6,539 10/7/2026
2.0.4 7,314 10/2/2026
2.0.3 82,321 7/30/2026
2.0.2 1,460 7/28/2026
2.0.1 278 7/28/2026
2.0.0 4,960 7/23/2026
1.9.6 504,961 6/9/2025
0.0.0-ci-286 105 10/2/2026
0.0.0-ci-285 97 10/2/2026
0.0.0-ci-252 132 7/23/2026