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

            OK = AStaff.StaffNumberValid(tstStaffNumber);
            //test to see that the result is corresct
            Assert.IsTrue(OK);
        }