public void TestTakeNested() { IEnumerable <CustomerOrderDto> actual = Partitioning.TakeNested(); IEnumerable <CustomerOrderDto> expected = new CustomerOrderDto[] { new CustomerOrderDto() { CustomerId = "LAZYK", OrderId = 10482 }, new CustomerOrderDto() { CustomerId = "LAZYK", OrderId = 10545 }, new CustomerOrderDto() { CustomerId = "TRAIH", OrderId = 10574 } }; CollectionAssert.AreEqual(actual.ToList(), expected.ToList(), "You failed!"); }