Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
使用 AutoFixture 对 Html 助手进行单元测试
我正在尝试使用 AutoFixture 对 Html Helper 进行单元测试 下面是我的SUT public static MvcHtmlString SampleTable this HtmlHelper helper SampleM
c
unittesting
modelviewcontroller
autofixture
.NET core 使用 Xunit + Autofixture + Moq 编写更好的单元测试
在 NET Core 中进行单元测试 我使用 Xunit Moq 和 Autofixture 但即使有了它们 我发现我的单元测试变得复杂并且需要时间 也许有人可以告诉我是否有任何方法可以缩小这个测试的规模 Fact public async
unittesting
NetCore
moq
xunit
autofixture
自动夹具奇怪的错误
我收到这个错误 Ploeh AutoFixture Kernel IllegalRequestException 对 IntPtr 的请求是 检测到 这是不安全的资源 如果使用的话 进程会崩溃 所以请求被拒绝 普通的 IntPtr请求的来源
NET
autofixture
当为自动模拟设置自定义 AutoDataAttribute 时,告诉 AutoFixture 忽略所有递归结构的正确语法是什么?
我让 xUnit Moq AutoFixture 成功地协同工作 以便我可以通过测试方法输入参数自动模拟对象 我创建了一个自定义 AutoMoqData 我在每次测试中使用的属性 这是该属性的代码 using System Linq usi
moq
xunit
autofixture
automocking
automoq
使用 AutoFixture 创建递归数据结构的固定装置
我正在开发一个项目 其中有一些递归数据结构 我想为其创建一个固定装置 数据结构是XmlCommandElement 它有一个单一的方法ToCommand转换XmlCommandElement to Command 树上的每个节点都可以是Xm
c
NET
unittesting
autofixture
AutoFixture 3 生成的整数是否唯一?
生成的整数是IFixture Create
c
autofixture
如何让 AutoFixture AutoMoq 返回实例化对象中注入服务的结果?
我正在尝试测试使用存储库服务的服务类 我设置了自定义设置 我认为应该与我的存储库服务一起使用 但返回默认的匿名结果 如果您查看下面的代码示例 当我调用 svc GetFoos 方法时 我试图获取在自定义类中注册的 Foo 对象 但我什么也没
c
moq
autofixture
如何指示 AutoFixture 不必填写某些属性?
我有一组嵌套相当深的数据访问类 AutoFixture 需要 2 分钟以上才能构建出其中 5 个的列表 每个单元测试 2 分钟太长了 如果我手动编码它们 我只会编码我需要的那些 所以它会初始化得更快 有没有办法告诉 AutoFixture
c
NET
autofixture
如何使用 AutoFixture 生成编译时未知的任意类型的存根对象
我可以像这样获取构造函数参数的类型 Type type paramInfo ParameterType 现在我想从这种类型创建存根对象 有可能吗 我尝试使用自动固定装置 public TObject Stub
c
unittesting
autofixture
具有嵌套集合的类 - 如何填充嵌套类?
我对如何将一个类与另一个类的嵌套集合进行水合感到有点困惑 我收到错误 AutoFixture 无法从 System Collections Generic IList 1 typename 创建实例 我尝试过使用Fixture Regist
autofixture
是否可以让 xUnit 创建的 ITestOutputHelper 在 AutoFixture 上下文中可用?
是否可以让 xUnit 创建的 ITestOutputHelper 在 AutoFixture 上下文中可用 在我的集成测试中 我使用 Builder 类 其中包含一些常规操作的辅助方法 为了隐藏类创建的复杂性 我使用自定义 AutoDat
c
xunitnet
autofixture
AutoFixture - 如何调用方法,如何设置自动属性的私有设置器?
这是我的课 public MyClass public int Id get private set public SetAssignableId int id this Id id 我想让 AutoFixture 通过 SetAssign
c
autofixture
AutoFixture/AutoMoq 忽略注入实例/冻结模拟
现在已经找到解决方案 简短的结论是 AutoFixture 返回冻结模拟就好了 我的 sut 也是由 AutoFixture 生成的 它只有一个公共属性 该属性具有对测试很重要的本地默认值 并且 AutoFixture 设置为新值 除此之外
c
unittesting
autofixture
automocking
IList
构造函数参数和 AutoFixture
Using 自动夹具 http autofixture codeplex com 我正在尝试构造匿名实例Project f new Fixture Customize new AutoMoqCustomization p f CreateA
c
unittesting
autofixture
什么是 AutoFixture AutoMoq?
当我注意到 AutoFixture AutoMoq 时 我正在查看 nuget 并想导入 moq 我看到 AutoFixture 是为了帮助更快地编写 TDD 但我找不到 AutoMoq 的任何示例以及它与 AutoFixture 有何不同
moq
autofixture
Autofixture 生成不重复的集合(按 ID)
我有以下课程 public class Foo public List
c
NET
Testing
autofixture
用于创建基本类型的实现的自定义
所以我有以下类型 public abstract class Base public string Text get set public abstract int Value get set public class BaseImplA
c
autofixture
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
«
1
2
3
»