我有兩個集合與不同的項目類型,例如: 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