Пример #1
0
        public void EmailMid()
        {
            //create an instance of the class we want to create
            clsStaff AStaff = new clsStaff();
            //boolean variable to store the result of the validation
            Boolean EmailOK = false;
            //create some test data to assign the property
            string SomeEmail = "ahsytghdnvjkiuthjghy";

            //invoke the method
            EmailOK = AStaff.EmailValid(SomeEmail);
            //test to see if the result is correct
            Assert.IsTrue(EmailOK);
        }
Пример #2
0
        public void PhoneNoMaxBoundary()
        {
            //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 = "12345678912345";

            //invoke the method
            PhoneNoOK = AStaff.EmailValid(SomePhoneNo);
            //test to see if the result is correct
            Assert.IsTrue(PhoneNoOK);
        }
Пример #3
0
        public void EmailMaxPlusOne()
        {
            //create an instance of the class we want to create
            clsStaff AStaff = new clsStaff();
            //boolean variable to store the result of the validation
            Boolean EmailOK = false;
            //create some test data to assign the property
            string SomeEmail = "asghnchyghbhnchjkloithgfdtsuchnjuhytgstgg";

            //invoke the method
            EmailOK = AStaff.EmailValid(SomeEmail);
            //test to see if the result is correct
            Assert.IsFalse(EmailOK);
        }