我有两个集合与不同的项目类型,例如: var collection1 = new List<Type1>();
var collection2 = new List<Type2>();
是否有可能断言两个集合与不同的项目类型包含以任意顺序等物品用我自己相等比较器与FluentAssertions? 从the official FA documentation最相关的例子认为,两个集合是同一类
我最近发现FluentAssertions有一个名为BeInAscendingOrder的集合断言。真棒! public class MyItems
{
public int SequenceNumber { get; set; }
public int Name { get; set; }
}
IList<int> resultingList = myClassUnd
我有一个单元测试使用FluentAssertion类似这样的: var instance = new ServiceInstance(name, "1.0.0", new Uri("http://www.google.com"));
var id = registry.RegisterInstance(instance);
registry.ExistsInstance(id).Should
使用Ninject,我有以下,并希望利用FluentAssertions测试: [Test]
public void InterfacesEndingWithFactoryShouldBeBoundAsFactories() {
// Given
IKernel kernel = new StandardKernel();
kernel.Bind(services
我用流利的断言来验证不同的测试对象 public class DTO
{
public int Key {get; set;}
public string Code { get; set; }
}
public class KeyDTO
{
public int Id {get; set;}
public string Code { get; se