Polaroider
Automated Snapshottesting made simple
Simplify UnitTesting with snapshots.
Polaroider is a Approval Testing Framework that creates and compares snapshots of almost anything
Documentation
Visit https://wickedflame.github.io/Polaroider/ for the full documentation.
Common, timeconsuming assertion testing
Conventional assertion testing needs multiple assertion checks to test and verify all properties of an object
// arrange
var repository = new PersonRepository();
// act
var person = repository.LoadTestPerson(...);
// assert
Assert.IsEqual(person.Firstname, "Chris");
Assert.IsEqual(person.Lastname, "Walpen");
Assert.IsEqual(person.Company, "WickedFlame");
Assert.IsEqual(person.Address.Street, "Teststreet");
Assert.IsEqual(person.Address.Streetnumber, 3);
Fast and easy approval testing with Polaroider
Polaroider reduces all assertions to just one call. Snapshottesting keeps the code simple, clean and readable.
// arrange
var repository = new PersonRepository();
// act
var person = repository.LoadTestPerson(...);
// assert
person.MatchSnapshot();