Nullean.Snapshots.AwesomeAssertions
0.12.1
dotnet add package Nullean.Snapshots.AwesomeAssertions --version 0.12.1
NuGet\Install-Package Nullean.Snapshots.AwesomeAssertions -Version 0.12.1
<PackageReference Include="Nullean.Snapshots.AwesomeAssertions" Version="0.12.1" />
<PackageVersion Include="Nullean.Snapshots.AwesomeAssertions" Version="0.12.1" />
<PackageReference Include="Nullean.Snapshots.AwesomeAssertions" />
paket add Nullean.Snapshots.AwesomeAssertions --version 0.12.1
#r "nuget: Nullean.Snapshots.AwesomeAssertions, 0.12.1"
#:package Nullean.Snapshots.AwesomeAssertions@0.12.1
#addin nuget:?package=Nullean.Snapshots.AwesomeAssertions&version=0.12.1
#tool nuget:?package=Nullean.Snapshots.AwesomeAssertions&version=0.12.1
Nullean.Snapshots.AwesomeAssertions

Text snapshot assertions for AwesomeAssertions, value.Should().MatchSnapshot() and MatchInlineSnapshot(), and the building blocks the HTML, JSON and YAML packages use. Part of Nullean.Snapshots, structural snapshot tests for .NET.
Install
dotnet add package Nullean.Snapshots.AwesomeAssertions
Quick start
The extensions live in the Nullean.Snapshots namespace:
using AwesomeAssertions;
using Nullean.Snapshots;
public class ReportTests
{
[Test]
public void Renders()
{
var report = Report.Render();
report.Should().MatchSnapshot(); // .verified.txt, compared line by line
Report.Header().Should().MatchSnapshot(name: "header"); // a second snapshot in the same test
}
[Test]
public void Totals() =>
Report.Totals().Should().MatchInlineSnapshot("""
2 x beats
1 x kibana
""");
}
Leave out the inline snapshot's expected value for a new one; snap accept writes it into the test.
For structured output prefer Nullean.Snapshots.Json or Nullean.Snapshots.Yaml, which compare as trees, not
lines. Add Nullean.Snapshots.TUnit so every case of a data-driven test gets its own file.
Learn more
- Documentation: https://snapshots.nullean.net
- Text snapshots: https://snapshots.nullean.net/formats/text/
- Inline snapshots: https://snapshots.nullean.net/formats/inline/
- Source and issues: https://github.com/nullean/snapshots
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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
- AwesomeAssertions (>= 9.6.0)
- Nullean.Snapshots (>= 0.12.1)
NuGet packages (6)
Showing the top 5 NuGet packages that depend on Nullean.Snapshots.AwesomeAssertions:
| Package | Downloads |
|---|---|
|
Nullean.Snapshots.Html
HTML snapshots and inline HTML assertions for Nullean.Snapshots: pretty-printed with AngleSharp, compared structurally with AngleSharp.Diffing. |
|
|
Nullean.Snapshots.Json
JSON snapshots and inline JSON assertions for Nullean.Snapshots, compared as trees: key order ignored, numbers by value, differences by path. |
|
|
Nullean.Snapshots.Yaml
YAML snapshots and inline YAML assertions for Nullean.Snapshots: stored verbatim, compared as trees with the YAML 1.2 core schema, differences pointing at line and column. |
|
|
Nullean.Snapshots.Http.Assertions
AwesomeAssertions extensions for Nullean.Snapshots.Http: MatchHttpSnapshot, MatchHttpFileSnapshot and HttpFileTest. |
|
|
Nullean.Snapshots.Browser.Assertions
AwesomeAssertions extensions for Nullean.Snapshots.Browser: MatchJourneySnapshot and MatchAriaSnapshot. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.12.1 | 0 | 11/12/2026 |
| 0.12.0 | 0 | 11/12/2026 |
| 0.11.0 | 10 | 11/11/2026 |
| 0.10.1 | 71 | 11/11/2026 |
| 0.10.0 | 89 | 11/11/2026 |
| 0.9.0 | 67 | 11/11/2026 |
| 0.8.1 | 190 | 11/11/2026 |
| 0.8.0 | 155 | 11/11/2026 |
| 0.7.0 | 242 | 11/10/2026 |
| 0.6.0 | 273 | 11/5/2026 |
| 0.5.0 | 128 | 11/5/2026 |
| 0.4.0 | 584 | 11/5/2026 |
| 0.3.0 | 138 | 11/4/2026 |
| 0.2.0 | 483 | 11/3/2026 |
| 0.1.0 | 534 | 11/3/2026 |
| 0.1.0-alpha.1 | 76 | 11/3/2026 |