Create & Fake

Mocking and data generation for testing.

View project on GitHub


The Tester tool provides methods to automatically handle common scenarios:

  • PreventsNullRefException - Verifies nulls are guarded.
  • MutationGuarder - Verifies paramters aren’t mutated by methods.

Be warned that these methods are not trivial and can be relatively slow.


Simply create a test method and call the Tester case:

/// <summary>Verifies null reference exceptions are prevented.</summary>
public void ValueRandom_GuardsNulls()

Creation & Customization

The Tester requires the other tools to automatically set up and run the tests.

Unlike the other tools, the Tester can be subclassed to add new methods or override any method to provide different behavior.