摘要:
我们在写Unit Test的时候是避免不了写Mock的。好的Mock库可以给我们极大的方便。在C++里我们有google mock库。在.NET里我们可以使用开源的Moq库。你可以通过这个链接来访问Moq的官方网站: http://code.google.com/p/moq/wiki/QuickStart这这篇文档里,我们将通过一个小的例子来学习如何使用Moq库。public interface IFoo { string GetClientName(); void SetClientName(string strName); } class Fo... 阅读全文
posted @ 2011-10-31 14:55
relianceslee
阅读(632)
评论(0)
推荐(0)
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace LandmaExpressionDemo{ class Program { static void Main(string[] args) { //anonymous method Action ac = delegate() { Console.WriteLine("hello delegate"); }; ... 阅读全文
posted @ 2011-10-31 14:13
relianceslee
阅读(235)
评论(0)
推荐(0)

浙公网安备 33010602011771号