Test before you code
Test before you fix a bug
write the test to demonstrate the bug
make sure the test fails
fix the bug
watch the test pass
Test before you add a feature
write the test to illustrate the feature
add the feature
pass your test