Ejemplo n.º 1
0
        public void PhoneNoMid()
        {
            //create an instance of the class we want to create
            clsStaff AStaff = new clsStaff();
            //boolean variable to store the result of the validation
            Boolean PhoneNoOK = false;
            //create some test data to assign the property
            string SomePhoneNo = "1234567";

            //invoke the method
            PhoneNoOK = AStaff.PhoneNoValid(SomePhoneNo);
            //test to see if the result is correct
            Assert.IsTrue(PhoneNoOK);
        }