コード例 #1
0
        public void Linq4_Customers_CustomersAndDateOfEntry()
        {
            var result = SelectExtensions.Linq4(DataSource.Customers).ToList();

            Assert.That(() => result.Count, Is.EqualTo(DataSource.Customers.Count - 1));
            foreach (var(customer, dateOfEntry) in result)
            {
                Assert.That(FindCustomerOrdersMinDate(customer), Is.EqualTo(dateOfEntry));
            }
        }
コード例 #2
0
 public void Linq4_NullCustomer_ThrowsArgumentNullException()
 {
     Assert.That(() => SelectExtensions.Linq4(null).ToList(), Throws.ArgumentNullException);
 }