XBullet.EasyTesting.Verify.Xunit 1.0.13

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

XBullet.EasyTesting.Verify.Xunit

Optional Verify.Xunit v3 integration for snapshot-testing HTTP controller responses produced by XBullet.EasyTesting.

The package targets .NET 8, .NET 9, and .NET 10.

Install

dotnet add package XBullet.EasyTesting.Verify.Xunit

Example

[Fact]
public async Task Get_order_matches_snapshot()
{
    using var response = await client.GetAsync("/api/orders/42");
    await response.VerifyControllerSnapshot();
}

The verified model contains stable request, status, header, and body data. Volatile headers are excluded by default, and ControllerSnapshotOptions can customize the captured result.

For a complete request/response exchange, attach an HttpExchangeRecorder to the test client. This records the real TestServer call; it does not replace the transport with a stub:

[Fact]
public async Task Create_product_matches_complete_exchange()
{
    var options = new HttpExchangeSnapshotOptions();
    options.Response.IgnoringHeaders("Location");

    var recorder = new HttpExchangeRecorder(options);
    using var client = scope.Client()
        .AsUser(user => user.WithName("snapshot tester"))
        .WithHandler(recorder)
        .Build();

    using var response = await client.PostAsJsonAsync(
        "/api/products",
        new { name = "Webcam", price = 79.95m });

    var settings = new VerifySettings();
    settings.ScrubMember("id");
    await response.VerifyHttpExchangeSnapshot(settings: settings);
}

The recorder associates the pre-transport capture with the returned response, so a factory or client helper can attach a fresh recorder while tests use only the response extension. Without a recorder, the extension falls back to the request retained by HttpResponseMessage. Use recorder.VerifyHttpExchangesSnapshot(settings) when the verified file should contain an array of every exchange in request order.

Documentation

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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.13 0 9/26/2026
1.0.12 34 9/25/2026
1.0.11 34 9/24/2026
1.0.9 32 9/24/2026
1.0.8 74 9/21/2026
1.0.7 82 9/19/2026
1.0.6 84 9/18/2026
1.0.5 81 9/18/2026
1.0.4 82 9/15/2026
1.0.3 80 9/15/2026
0.2.0 82 9/15/2026
0.1.0 82 9/14/2026