享受代码,享受人生

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.
随笔 - 213, 文章 - 45, 评论 - 2315, 阅读 - 121万
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

05 2005 档案

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

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

摘要: 厌烦了Assert.AreEqal();等等一堆的Assert类中的静态方法了吗? 偶然觅得下面这个奇思妙想. AssertThat(something, Equal("Hello")); 阅读全文

posted @ 2005-05-15 20:38 idior 阅读(3378) 评论(9) 推荐(0) 编辑

摘要:下面这段代码为什么无法编译? usingSystem; usingSystem.Collections.Generic; usingSystem.Drawing; namespaceGenicTest { classProgram { staticvoidMain(string[]args) { ... 阅读全文

posted @ 2005-05-11 16:40 idior 阅读(3325) 评论(35) 推荐(0) 编辑

点击右上角即可分享
微信分享提示