Diffa is a unit-test assertion library that allows you to verify your test results against approved files. Inspired by ApprovalTests, Diffa will also automatically launch your favorite diff tool when an assertion fails so you can compare approve the results.
[TestClass]
[Reporter(typeof(DiffReporter))]
[ApprovedFolder("approved-results/")] /* optional */
public class UnitTests
{
[TestMethod]
[ApprovedName("9e9516c4-3ed6-449d-b679-cbc858067c6f")] /* optional */
public void Ensure_results_are_well_formed()
{
Diffa.Approve("These are my test results.");
}
}
Available at:
NUGET: PM> Install-Package Acklann.Diffa