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.
See the version list below for details.
Install-Package TestHelpers.DiffAssertions -Version 1.0.0-CI-20180909-092340
dotnet add package TestHelpers.DiffAssertions --version 1.0.0-CI-20180909-092340
<PackageReference Include="TestHelpers.DiffAssertions" Version="1.0.0-CI-20180909-092340" />
paket add TestHelpers.DiffAssertions --version 1.0.0-CI-20180909-092340
- Microsoft.Extensions.Configuration.Json (>= 2.0.0)
This package is not used by any popular GitHub repositories.