Info
Version: | 2.0.0 |
Author(s): | Patrik Olausson |
Last Update: | Sunday, October 13, 2024 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://github.com/patrik-olausson/TestHelpers.DiffAssertions |
NuGet Url: | https://www.nuget.org/packages/TestHelpers.DiffAssertions |
Install
Install-Package TestHelpers.DiffAssertions
dotnet add package TestHelpers.DiffAssertions
paket add TestHelpers.DiffAssertions
TestHelpers.DiffAssertions Download (Unzip the "nupkg" after downloading)
Dependencies
- Microsoft.Extensions.Configuration.Json(>= 2.0.0)
Tags
Simply put it is a much simpler (and dumber) version of ApprovalTests that should get the job done for simple scenarios.
You can easily create a file that contains the expected result (your specification or example) and then compare the contents of the file with the actual value that is produced during the test.
A new addition is the ability to compare objects wihout using files. It is an extension of FluentAssertions that allows comparison and exclusion of complex objects.