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); }
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); }
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); }