Exemplo n.º 1
0
        public void TestID34_FilterByLastName()
        {
            CustomerList TestList = new CustomerList();

            TestList.CustList = TestCustomerList.FilterByLastName(SearchLastName);

            if (TestList.CustList.Count != FilterByLastName_expectedResult.Length)
            {
                Assert.Fail("Too many or too few customers found.");
            }
            else
            {
                for (int i = 0; i < FilterByLastName_expectedResult.Length; i++)
                {
                    Assert.IsTrue(FilterByLastName_expectedResult.Contains(TestList.CustList[i].CustomerNumber));
                }
            }
        }