Skip to content

Latest commit

 

History

History
48 lines (39 loc) · 1.65 KB

polaroider.md

File metadata and controls

48 lines (39 loc) · 1.65 KB
title layout nav_order
Polaroider
default
3

Polaroider

Automated Snapshottesting made simple

Simplify UnitTesting with snapshots.
Polaroider is a Approval Testing Framework that creates and compares snapshots of almost anything

Build Status Build status NuGet Version

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();