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.

 

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

相关文章
相关标签/搜索