TDD三大定律

  1. You must write a failing unit test before you write production code.
  2. You must stop writing that unit test as soon as it fails; and not compiling is failing.
  3. You must stop writing production code as soon as the currently failing test passes.

 

当有新的理解,会后续更新。。。

原文地址:https://www.cnblogs.com/larson/p/4421421.html