Exemple #1
0
        public void TestID37_FilterByCity()
        {
            CustomerList TestList = new CustomerList();

            TestList.CustList = TestCustomerList.FilterByCity(SearchCity);

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