Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
Autofixture ObjectCreationException - 循环引用:RuntimeParameterInfo 或 Ploeh.AutoFixture.Kernel.SeededRequest
我一直在尝试对一些简单的不可变对象进行建模 其中我有两个构造函数重载 一个重载接受每个只读属性的参数 另一个接受其自身的实例进行克隆 以便在大多数属性时使用 值将与另一个实例的值相同 public class Parent public P
c
unittesting
xunitnet
autofixture
相似度-抛光和包装
我在用着Ploeh SemanticComparison s Likeness作为有效表达映射过程的预期输出的一种方式 如中所述Mark Seemann 在 PluralSight 上发表的优秀高级单元测试课程 我正在测试一些数据是否已正确
c
unittesting
xunit
autofixture
semanticcomparison
使用相当于 AutoFixture 'With' 的匿名值进行广义 Func 包装
在基于 AutoFixture 的测试中 我尝试尽可能清晰地表达以下内容 当我经过时
c
unittesting
mocking
autofixture
CreateMany,其中只有 1 个元素包含特定值
这似乎是我读过的每篇博客文章或文档中都缺少的东西 我怎么能够CreateMany
c
autofixture
我是否应该使用 AutoFixture 来测试我的 Onion 的核心元素(它没有依赖项)?
这个问题是我之前的问题的延续 如何使用OneTimeSetup 特别是其中一位回答者的回答 请看下面的代码 TestFixture public class MyFixture IProduct Product OneTimeSetUp p
c
unittesting
nunit
domaindrivendesign
autofixture
如何在 AutoFixture 中设置更复杂(类似 IoC)的注册
使用 AutoFixture 时 是否可以在集成测试中重用生产 IoC 容器注册 问题是 如果未注册依赖项并注入 真实 数据库相关依赖项 我需要以下固定装置设置来注入模拟 var fixture new Fixture WithMocks
c
unittesting
autofixture
F# UnitTest 项目中的 AutoFixture 未在测试资源管理器中显示单元测试
我有一个 Visual Studio 2012 项目并安装了以下 NuGet 包 使用最小起订量进行自动模拟的 AutoFixture Autofixture 与 xUnit net 数据理论 汽车夹具 Moq xUnit net 扩展 x
unittesting
F
xunitnet
autofixture
AutoFixture 约束字符串参数
有没有一种简单的方法来指定参数 orderBy 的可能值列表 请不要一一列举 否则我也不会提问 我想指定 orderby 仅当从预定列表中选择时才有意义 假设列表非常大 仍然不是随机的 这不可能那么难 没有一个例子可以说明如此简单的任务 T
ASPNETMVC
nunit
autofixture
AutoFixture CompositeDataAttribute 不适用于 PropertyDataAttribute
我正在尝试创建AutoPropertyDataAttribute基于CompositeDataAttribute从这个例子AutoFixture PropertyData 和异构参数 它适用于单组参数 但适用于更多组参数 这是代码 publ
c
xunitnet
autofixture
如何在 xunit/autofixture 中组合 PropertyData 和 AutoNSubstituteData 属性?
我正在使用 AutoNSubstituteData 属性 发布在这里 AutoFixture xUnit net 和自动模拟 我想将其与 PropertyData 来自 xunit 扩展的属性 这是我的测试 public static IE
unittesting
mocking
xunitnet
autofixture
nsubstitute
AutoFixture IEnumerable
与 CreateMany() 的行为
看帖子的时候here 看起来我应该能够使用创建多个对象CreateMany 使用迭代它们foreach 然后将它们作为数组返回 我看到的是 每次迭代似乎每次都会创建新对象 这是预期的行为吗 要创建的实体 public class TestE
c
autofixture
为什么当类被密封时,带有 AutoMoqCustomization 的 Autofixture 不再抱怨缺少无参数构造函数?
当我使用Moq直接模拟IBuilderFactory并实例化BuilderService我自己在单元测试中 我可以获得通过测试 验证Create 的方法IBuilderFactory被调用一次 但是 当我使用自动夹具 with AutoMo
Nuget 找不到更新的依赖项
我刚刚在 ASP 5 MVC 6 beta8 中创建了一个新项目和一个用于测试的兼容类库 问题出现在我打算用于测试的这个新的 Web 类库 项目中 这是我的project json 的样子 version 1 0 0 description
NuGet
moq
ASPNETCore
aspnetcoremvc
autofixture
AutoFixture:模拟方法不返回冻结实例
我正在尝试编写这个简单的测试 var fixture new Fixture Customize new AutoMoqCustomization var postProcessingAction fixture Freeze
moq
autofixture
«
1
2
3