public void Linq2_CustomersAndSuppliers_2CustomersHaveSuppliers() { var result = LinqTask.Linq2(DataSource.Customers, DataSource.Suppliers).ToList(); Assert.That(() => result.Count, Is.EqualTo(DataSource.Customers.Count)); foreach (var(customer, suppliers) in result) { foreach (var supplier in suppliers) { StringAssert.AreEqualIgnoringCase(customer.City, supplier.City); StringAssert.AreEqualIgnoringCase(customer.Country, supplier.Country); } } }
public void Linq2_NullCustomer_ThrowsArgumentNullException() { Assert.That(() => LinqTask.Linq2(null, null).ToList(), Throws.ArgumentNullException); }