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
欢迎关注本站公众号,获取更多信息