通过 Nuget 安装 2. 官网下载(官网不行点这里) 3. 帮助文档商业版和免费版区别概览 MockingContainer测试类准备:一般来说也是业务类 public class Class ...
- 通过 Nuget 安装
2. 官网下载(官网不行点这里)
3. 帮助文档
商业版和免费版区别概览
MockingContainer
测试类准备:一般来说也是业务类
public class ClassUnderTest { private IFirstDependency firstDep; private ISecondDependency secondDep; public ClassUnderTest(IFirstDependency first, ISecondDependency second) { this.firstDep = first; this.secondDep = second; } public IList<object> CollectionMethod() { var firstCollection = firstDep.GetList(); return firstCollection; } public string StringMethod() { var secondString = secondDep.GetString(); return secondString; } } public interface IFirstDependency { IList<object> GetList(); } public interface ISecondDependency { string GetString(); }
原标题:JustMock Lite (Free Mocking Framework For .net)
关键词:.NET
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们:
admin#shaoqun.com
(#换成@)。