While (项目未完成):
创建新的会失败的单位测试 (Create a new fail unit test);
编写能够通过新测试的生产代码 (Write just enouth production code pass the new test);
重构测试代码和生产代码:去除冗余代码等(refactor the test code and production code);
End
推荐的C++单元测试框架有:
- Google Test (https://github.com/google/googletest)