The procedure is to write test cases for all functions and methods .
Whenever a change causes a fault .
The procedure is to write test cases for all functions and methods so that whenever a change causes a fault .