摘要: 先看下面一段代码:public class DataService : IDataService{ private readonly IDataRespository _dataRespository; public DataService(IDataResposit... 阅读全文
posted @ 2014-01-15 13:46 踏歌长行 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 单元测试项目中引入 xunit.dll1. 有类 Common,中有方法 Divide(int a, int b),代码如下public class Common{ public int Divide(int a, int b) { if (b ... 阅读全文
posted @ 2014-01-15 11:45 踏歌长行 阅读(277) 评论(0) 推荐(0) 编辑