XBullet.EasyTesting.Verify.Xunit
1.0.9
See the version list below for details.
dotnet add package XBullet.EasyTesting.Verify.Xunit --version 1.0.9
NuGet\Install-Package XBullet.EasyTesting.Verify.Xunit -Version 1.0.9
<PackageReference Include="XBullet.EasyTesting.Verify.Xunit" Version="1.0.9" />
<PackageVersion Include="XBullet.EasyTesting.Verify.Xunit" Version="1.0.9" />
<PackageReference Include="XBullet.EasyTesting.Verify.Xunit" />
paket add XBullet.EasyTesting.Verify.Xunit --version 1.0.9
#r "nuget: XBullet.EasyTesting.Verify.Xunit, 1.0.9"
#:package XBullet.EasyTesting.Verify.Xunit@1.0.9
#addin nuget:?package=XBullet.EasyTesting.Verify.Xunit&version=1.0.9
#tool nuget:?package=XBullet.EasyTesting.Verify.Xunit&version=1.0.9
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
[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.
See the repository documentation for settings and customization examples.
| Product | Versions 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. |
-
net10.0
- Verify.XunitV3 (>= 31.24.0)
- XBullet.EasyTesting.Snapshots.Core (>= 1.0.9)
-
net8.0
- Verify.XunitV3 (>= 31.24.0)
- XBullet.EasyTesting.Snapshots.Core (>= 1.0.9)
-
net9.0
- Verify.XunitV3 (>= 31.24.0)
- XBullet.EasyTesting.Snapshots.Core (>= 1.0.9)
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.17 | 35 | 10/1/2026 |
| 1.0.16 | 37 | 9/30/2026 |
| 1.0.15 | 40 | 9/29/2026 |
| 1.0.14 | 77 | 9/27/2026 |
| 1.0.13 | 84 | 9/26/2026 |
| 1.0.12 | 87 | 9/25/2026 |
| 1.0.11 | 83 | 9/24/2026 |
| 1.0.9 | 80 | 9/24/2026 |
| 1.0.8 | 90 | 9/21/2026 |
| 1.0.7 | 86 | 9/19/2026 |
| 1.0.6 | 90 | 9/18/2026 |
| 1.0.5 | 86 | 9/18/2026 |
| 1.0.4 | 89 | 9/15/2026 |
| 1.0.3 | 85 | 9/15/2026 |
| 0.2.0 | 88 | 9/15/2026 |
| 0.1.0 | 89 | 9/14/2026 |