Unit Tests

One assumption per unit test

If a single unit tests verifies multiple assumptions, it becomes very easy to miss one or two behavioural changes, or consider them unimportant.

By calling out every assumption in a separate unit test, it implies a conscious effort to ensure that behaviour.

results matching ""

    No results matching ""