- 博客(2)
- 资源 (1)
- 收藏
- 关注
原创 单元测试之moles
一、moles使用注意事项 被测类要使用public修饰符,不然无法使用生成的moles.dll。测试方法要使用[HostType("Moles")]标记。 二、moles模拟函数 1.静态函数 源代码: public clas
2011-09-07 14:45:22
1305
原创 单元测试之moq
moq模拟属性 源代码 public class Customer { public virtual int a { get; set; } public virtual string b { get; set; } } 测试代码
2011-09-06 11:29:18
913
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人