会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Cat in dotNET
Imagination is more important than knowledge.
博客园
首页
新随笔
联系
管理
订阅
2016年12月23日
moq 的常用使用方法
摘要: 测试方法 1 // 准备 Mock IFoo 接口 2 var mock = new Mock<IFoo>(); 3 // 配置准备模拟的方法,当调用接口中的 DoSomething 方法,并传递参数 "bing" 的时候,返回 true 4 mock.Setup(foo => foo.DoSome
阅读全文
posted @ 2016-12-23 17:58 Cat Qi
阅读(1344)
评论(0)
推荐(0)
编辑
公告