Flushot 0.0.1

An extension to FluentAssertions that compares JSON serialization of objects to snapshots stored
     in the source tree.

There is a newer prerelease version of this package available.
See the version list below for details.
Install-Package Flushot -Version 0.0.1
dotnet add package Flushot --version 0.0.1
<PackageReference Include="Flushot" Version="0.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Flushot --version 0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Snapshot testing for JSON

A simple library for testing that JSON serializations of classes using JSON.Net doesn't change. The idea is you take an object, load a snapshot JSON file based on the test name, and make sure the object can be reconstructed from the snapshot and serializes to JSON that is equivalent. If the snapshot doesn't exist already, the object is serialized and saved as the snapshot for future tests. Snapshot files are stored in a directory named "_snapshots" in the same directory as the source code for the test.

New snapshots need to be added to source control manually.

Snapshot testing for JSON

A simple library for testing that JSON serializations of classes using JSON.Net doesn't change. The idea is you take an object, load a snapshot JSON file based on the test name, and make sure the object can be reconstructed from the snapshot and serializes to JSON that is equivalent. If the snapshot doesn't exist already, the object is serialized and saved as the snapshot for future tests. Snapshot files are stored in a directory named "_snapshots" in the same directory as the source code for the test.

New snapshots need to be added to source control manually.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.1.1-alpha 1,606 6/17/2020
0.1.0-alpha 79 6/17/2020
0.0.2-alpha 99 6/4/2020
0.0.1 1,988 11/30/2019