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
<PackageReference Include="AwesomeAssertions.Web" Version="3.0.2" />
<PackageVersion Include="AwesomeAssertions.Web" Version="3.0.2" />
<PackageReference Include="AwesomeAssertions.Web" />
paket add AwesomeAssertions.Web --version 3.0.2
#r "nuget: AwesomeAssertions.Web, 3.0.2"
#:package AwesomeAssertions.Web@3.0.2
#addin nuget:?package=AwesomeAssertions.Web&version=3.0.2
#tool nuget:?package=AwesomeAssertions.Web&version=3.0.2
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 | Versions 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. |
-
.NETStandard 2.0
- AwesomeAssertions (>= 9.0.0)
- HttpMessageFormatter (>= 2.0.8)
- Microsoft.AspNetCore.WebUtilities (>= 2.3.14)
- System.Net.Http.Json (>= 8.0.1)
- System.Text.Encodings.Web (>= 8.0.0)
- System.Text.Json (>= 8.0.6)
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 |