예제 #1
0
        public void PostCodeTestMidBoundary()
        {
            //create an instance of a class
            clsCustomer AnAddress = new clsCustomer();
            //Boolean variable to store the result of the validation
            Boolean OK = false;
            //Create some test data to pass to the method
            string HouseNo   = "32a";
            string Street    = "some street";
            string Town      = "Leicester";
            string PostCode  = "aaaa";
            string DateAdded = Convert.ToString(DateTime.Now.Date);

            //invoke the method
            OK = AnAddress.ValidConvert(HouseNo, Street, Town, PostCode, DateAdded);
            //test to see that the result is correct
            Assert.IsTrue(OK);
        }