Select Page

Design C# unit tests around observable behavior

A reservation method returns true. Has your test proved that anything was reserved? Only if it also checks the outcome the caller relies on. A test can execute the right method and still miss a broken result. This tutorial builds five behavior tests for a small...