Posted in Uncategorized

The 3 Laws of Unit Testing

  1. First Law: You may not write production code until you have written a failing unit test.
  2. Second Law: You may not write more of a unit test than is sufficient to fail, and not compiling is failing.
  3. Third Law: You may not write more production code than is sufficient to pass the currently failing test.

    Inspired by Clean Code 

Advertisements