FluentAssertions 对单个对象的多个属性进行断言
- 论坛
- FluentAssertions 对单个对象的多个属性进行断言
7 浏览
FluentAssertions 对单个对象的多个属性进行断言
是否有一种使用FluentAssertions来做类似这样的事情的方法?
response.Satisfy(r => r.Property1== "something" && r.Property2== "anotherthing"));
我试图避免编写多个Assert语句。我曾经使用的https://sharptestex.codeplex.com/库可以实现这一点,但是SharpTestEx不支持.Net Core。