摘要:
Moq.AutoMock Continuous NuGet Status Moq.AutoMock 是一个基于 Moq 的自动模拟容器,用于简化单元测试中的模拟对象创建和依赖注入。它特别适用于那些已经使用依赖注入容器(IoC 容器)的项目,可以帮助你解耦单元测试中的构造函数参数变化。 Usage(用 阅读全文
摘要:
Method 方法 有以下例子 using Moq; // Assumptions: public interface IFoo { Bar Bar { get; set; } string Name { get; set; } int Value { get; set; } bool DoSome 阅读全文