Here is my experimental version of the 3 rules of TDD:
- You are not allowed to write any production code unless it is to make a failing unit test pass. (No modification here)
- You are not allowed to write any more of a unit test than is sufficient to sufficiently test a single method. (Instead of just enough to get a failure)
- You are not allowed to write any more production code than is sufficient to pass all tests for the one method. (To match the new Rule #2)