Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
FluentAssertions ShouldNotThrow 无法识别异步方法/Func
我正在尝试检查异步方法是否抛出具体异常 为此 我使用 MSTEST 和 FluentAssertions 2 0 1 我已经检查过这个关于 Codeplex 的讨论 http fluentassertions codeplex com wo
c
asyncawait
fluentassertions
如何使用 Fluent Assertion 比较两个属性不同的集合?
我有公开课RuleInfo它是从内部类创建的Rule private static RuleInfo CreateRuleInfo Rule r return new RuleInfo RuleCode r RuleId DisplayNa
c
unittesting
fluentassertions
忽略 ShouldBeEquivalentTo 中的内部属性
在执行 ShouldBeEquivalentTo 时 有没有办法忽略类的内部属性 例如 在下面的类中 我想从对象图比较中排除 MetaData 属性 public class SomeObject Public string SomeStr
c
TDD
fluentassertions
objectgraph
在 FluentAssertions 中自定义失败处理
我尝试使用 FluentAssertions 不仅作为测试断言框架 而且还检查运行时契约 例如高级 Debug Assert 并且我已阅读this https stackoverflow com questions 49724379 sho
c
fluentassertions
OR 条件的流畅断言
我正在尝试为以下条件设置流畅的断言 但找不到带有表达式的方法或带有 Or 的对象断言 我必须检查我的服务状态是否具有枚举值Pending or Active services Should HaveCount totalServices A
c
Fluent
assertions
fluentassertions
使用 ShouldBeEquivalentTo 并处理不同的名称
我想做一个映射器测试 将数据库模型映射到 dto 数据库模型中有 class Order long Id 但在 Dto 上 同一个字段被命名为 class OrderDto long OrderId 使用 ShouldBeEquivalen
c
nunit
fluentassertions
FluentAssertions,确保 IEnumerable 仅包含单个元素
我正在编写单元测试 我有一些看起来像这样的东西 Fact public void GetFoos only gets foo1 foo1 included true Foo object foo2 included false Foo ob
c
xunit
fluentassertions
FluentAssertions 应该在生产代码中使用吗? [关闭]
Closed 这个问题是基于意见的 目前不接受答案 我一直在使用 FluentAssertions 进行单元测试 并且想知道为什么只在该上下文中提到它 如果您通常编写带有防护的快速失败生产代码 则必须复制 FluentAssertions
c
fluentassertions
使用 ShouldBeEquivalentTo 时如何排除 IEnumerable 中所有项目的属性?
在我的 NUnit FluentAssertions 测试中 我使用以下代码将从系统返回的复杂对象与参考对象进行比较 response ShouldBeEquivalentTo reference o gt o Excluding x gt
c
unittesting
fluentassertions
Fluent Assertions 可以对 IEnumerable
使用字符串不敏感的比较吗?
我有一对列表 我正在尝试使用流畅的断言进行比较 我可以轻松地编写比较代码 但我想使用 Fluent Assertions 以便我可以获得在测试失败消息中显示的原因 到目前为止我所看到的所有内容似乎都使用默认的 Object Equals 比
c
unittesting
fluentassertions
流畅断言:比较两个数字集合的近似值
我有两个双精度数组 有没有办法使用 FluentAssertions 使用 BeApproximately 技术逐个元素地比较数组 一个范围值足以满足整个数组的需要 Example double source 10 01 8 01 6 01
c
unittesting
nunit
fluentassertions
FluentAssertions ShouldBeEquivalentTo() 与 Should().BeEquivalentTo()
我有一个测试来验证方法的集合输出 该测试的变体通过了 TestMethod TestCategory BVT public void TheStatusesAreReturned var expectedUnprocessedStatuse
unittesting
fluentassertions