TestHelpers.DiffAssertions NuGet Package

A simple diff comparison asserter that makes it easy to assert if two texts (strings) are equal, and display the differences in a diff tool if they are not.
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.




Got any TestHelpers.DiffAssertions Question?





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)



Tags



STATS

must-have-score

2.3

avg-downloads-per-day

4

days-since-last-release

39