What to test?

Whenever you are tempted to type something into a print statement or a debugger expression, write it as a test instead.
Martin Fowler

Test are really good:

  • They make your code less likely to change inadvertently.

Test can be bad:

  • They can make harder to change your code on purpose.