Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
分层对象和 AutoFixture
我已经实现了一个用于存储标签的类 标签集合必须是分层的 所以我的类是 public class Tag public int Id get set public int Description get set public Tag Pare
c
Hierarchy
circularreference
autofixture
如何创建始终在 AutoFixture 中设置预定义值的类列表?
如何创建始终在 AutoFixture 中设置特定预定义值的类集合 Fixture Register
c
autofixture
我如何告诉 AutoFixture 在实例化 TBase 时始终创建 TDerived?
我有一个深度嵌套的对象模型 其中一些类可能看起来有点像这样 class TBase class TDerived TBase class Container ICollection
c
autofixture
AutoFixture,创建电子邮件地址列表
我正在编写一些单元测试并有一个名为Account其中有 public Guid AccountId get set public IEnumerable
c
unittesting
Testing
autofixture
使用假 DbContext 和 Autofixture 以及 Moq 进行测试
所以请遵循这个例子 example http romiller com 2012 02 14 testing with a fake dbcontext 以及如何制作一个假的 DBContext 来测试我的测试 使用这个工作正常 Test
EntityFramework
aspnetmvc4
nunit
moq
autofixture
Autofixture 测试无效的构造函数参数
我有以下课程和测试 我想测试将空值作为参数传递给构造函数并期待ArgumentNullException 但由于我使用 AutofixtureCreateAnonymous方法我得到一个TargetInvocationException反而
autofixture
如何将 AutoFixture 自定义应用到从基类继承的任何内容?
为了干燥我的单元测试 我尝试使用 AutoFixture 作为 IoC 容器来实例化我的被测系统 SUT 在本例中是 ASP NET MVCControllers 因此 我想自定义 AutoFixture 以创建没有自动属性的控制器 我尝试
c
unittesting
autofixture
Autofixture 声明性自动数据参数属性的集合大小
如何使用 Autofixture 的声明性参数样式传递到测试的属性上的属性来指定列表 枚举的长度 大小 我希望能够在不将参数移入测试主体的情况下使该测试通过 Theory AutoData public void CollectionSiz
c
unittesting
autofixture
如何为特定类别自定义 AutoFixture 行为
我需要启用 AutoFixture 来创建具有循环引用的类型实例 来自第三方提供的 API 为此 我可以删除默认的ThrowingRecursionBehavior如下所示 public class RecursiveObjectCusto
unittesting
autofixture
AutoFixture 和私有财产
我可以指导吗汽车夹具 https github com AutoFixture还可以填充私有属性 并用特定属性进行注释 例如Ninject Inject 所有类别中 来源似乎只扫描公共属性 1 https github com AutoFi
c
autofixture
AutoFixture 无法创建声明(使用 .NET Framework 4.6)
我刚刚安装了VS2015 同时安装了 NET Framework 4 6 突然AutoFixture 3 30 8无法创建Claim目的 我猜测新的 NET Framework 版本 4 6 会导致 AutoFixture 内部出现一些问题
c
visualstudio2015
autofixture
net46
在代码中与在脚本中生成集成测试数据[关闭]
Closed 这个问题是基于意见的 help closed questions 目前不接受答案 这个问题很可能是基于意见的 但我确信 有确凿论据支持的观点将为明智的决策铺平道路 我确实喜欢使用 Autofixture 生成数据库状态 我真诚
c
TDD
integrationtesting
autofixture
对抛出异常的控制器进行单元测试
我有一个具有以下签名的控制器 public CustomerTypeController IHttpContextAccessor accessor IPrincipalProvider provider IMapper mapper IL
c
ASPNETCore
moq
xunitnet
autofixture
Autofixture构造函数注入延迟加载
我在单元测试中使用自动装置 它作为自动模拟器的工作方式非常棒 但是 当我将延迟加载的对象注入到我的类中时 我遇到了问题 例如 public class MyClass IMyClass private Lazy
c
unittesting
autofixture
MOQ 和 AutoFixture 之间有什么区别?
我有相当多的使用 MOQ 的经验 而我最近偶然发现了 AutoFixture 这些框架之间有什么区别 The FAQ https github com AutoFixture AutoFixture wiki FAQ解释了其中的差异 简而言
unittesting
mocking
moq
autofixture
automocking
AutoFixture 2 With() 无法像 AutoFixture 1 中那样工作?
我正在将我的测试移植到自动夹具2 0 http autofixture codeplex com 我遇到了一些奇怪的行为 我既无法解释也无法修复 这个简单的测试对我来说失败了 var autoFixtures new Fixture var
autofixture
调用 AutoFixture 自定义的 Dispose 方法
我正在使用 AutoFixture 自定义来测试访问 SQL Compact DB 的存储库 测试完成后立即删除该数据库对我非常有帮助 因为数据库是在自定义构造函数中创建的 所以我认为删除它的最佳位置是在 dispose 方法中 我正在想的
c
integrationtesting
autofixture
验证一组对象是否已正确映射
我正在寻找一套干净的管理方法测试特定的相等性 http blog ploeh dk 2012 06 22 Test specificEqualityversusDomainEquality in F 单元测试 90 的时间里 标准结构平等
F
autofixture
如何使用 Autofixture 创建和填充我的模拟类?
目前 我正在使用 EF6 在 UnitOfWork 内实现我的存储库 我还创建了一个内存中模拟实现 MockUnitOfWork 和 MockRepository 以便我可以在单元测试中使用它们 但是我现在必须处理对象的繁琐设置 这不就是
c
autofixture
nsubstitute
AutoFixture:无法创建实例,可能没有公共构造函数
我似乎遇到了问题 我有一个类 LoginService 在构造函数中接受 IUser 这是为了执行集成测试而不是单元测试 因此我不想模拟这些 我已经有了一些单元测试 并且它们使用带有固定装置的 Moq 工作得很好 我设置了我的装置 var
c
autofixture
1
2
3
»