摘要: cppunit的代码还是比较容易读的,比看文档还要省事一些。 拣主要的说一下: 1. Test和TestSuite 这个关系有点像composite模式,如图 当然除了TestSuite外,Test还有其它的子类,比如TestCase等 2.TestResult和TestRunner和Test TestRunnder组织起Test(/TestSuite),之后run时,实际将所有Test交给T... 阅读全文
posted @ 2011-12-23 21:50 justin_s 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 原位于 : CAPG目录下的include/ lib / bin等处,使用vs2005编译 现需要使在vs 2010下使用,因此使用vs 2010重新编译下 src目录下打开CppUnitLibraries.dsw工程并转换 修改TestRunner下的UserInterface\ MsDevCallerListCtrl.cpp中version("8.0")改到version("10.0") b... 阅读全文
posted @ 2011-12-23 20:47 justin_s 阅读(163) 评论(0) 推荐(0) 编辑
摘要: Push and Pop The warning pragma also supports the following syntax. #pragma warning( push [ ,n ] ) #pragma warning( pop ) Where n represents a warning level (1 through 4). The pragma warning( push ) s... 阅读全文
posted @ 2011-12-23 14:19 justin_s 阅读(415) 评论(0) 推荐(0) 编辑
摘要: 两句话:1.被装饰的窗户仍然是窗户 2.被装饰的窗户除了装饰还有窗户 [image from http://en.wikipedia.org/wiki/Decorator_pattern] 阅读全文
posted @ 2011-12-23 13:48 justin_s 阅读(133) 评论(0) 推荐(0) 编辑