Example #1
0
        public void Linq6_Customers_Returns5()
        {
            var init = DataSource.Customers.ToList();
            var aft  = LinqTask.Linq6(DataSource.Customers).ToList();

            Assert.That(LinqTask.Linq6(DataSource.Customers).Count(), Is.EqualTo(5));
        }
Example #2
0
        public void Linq6_Customers_ReturnsFilteredCustomers()
        {
            var expectedResult = DataSource.Customers.ToList();

            expectedResult.RemoveAt(0);
            expectedResult.RemoveAt(0);
            expectedResult.RemoveAt(3);

            var result = LinqTask.Linq6(DataSource.Customers).ToList();

            CollectionAssert.AreEquivalent(expectedResult, result);
        }
Example #3
0
 public void Linq6_NullCustomer_ThrowsArgumentNullException()
 {
     Assert.That(() => LinqTask.Linq6(null).ToList(), Throws.ArgumentNullException);
 }