享受代码,享受人生

SOA is an integration solution. SOA is message oriented first.
The Key character of SOA is loosely coupled. SOA is enriched
by creating composite apps.
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2005年5月22日

摘要: 前段时间写了一篇随笔介绍了一下AssertThat的用法. 今天突发奇想由此联想到了测试代码的复用. (哈,我也会突发奇想了)其实在编写测试案例的过程中有很多的测试方法仅仅是因为换了一个对象我们就要重写一次,当然你可以使用Ctrl+C,Ctrl+V.不过这显然是一个Bad Smell. 有没有什么改进的方法呢?看看AssertThat的结构. Assert.AssertThat(3, Betwee... 阅读全文

posted @ 2005-05-22 21:35 idior 阅读(3563) 评论(2) 推荐(0) 编辑