TDD三大定律
- You must write a failing unit test before you write production code.
- You must stop writing that unit test as soon as it fails; and not compiling is failing.
- You must stop writing production code as soon as the currently failing test passes.
當有新的理解,會後續更新。。。code
歡迎關注本站公眾號,獲取更多信息