【原创】单元测试和测试驱动开发(TDD)杂谈
摘要: 本文讨论了实际工作中单元测试实践和测试驱动开发的感受和困惑,并试图通过研究业界实践来回答如下问题:为什么要进行单元测试,对谁进行单元测试,怎么进行单元测试。
阅读全文
posted @
2010-07-13 17:34 Justin Chen 阅读(2881) |
评论 (2) 编辑
[绝对原创] Use Unitils To Simplify Mock Test
摘要: Mock test is a very good way to test unit of codes. However, Mock test need lots effort on creating mock object, creating input and output parameter, and creating AugumentMatcher, and also comparing the expected result and actual results (assertions). Using Unitils can Simplify most of the manual work required by Mock Test.
阅读全文
posted @
2009-03-30 22:30 Justin Chen 阅读(2000) |
评论 (1) 编辑