public void EmailAddressWithoutAt() { //instance of the clsEmail clsEmail TestEmail = new clsEmail(); //test data to store result of validation Boolean OK; //test data to the property OK = TestEmail.Valid("mulgrewaaron1gmail.com"); //check to see if result is ok Assert.IsFalse(OK); }
public void EmailAddressMinLessOne() { //instance of the clsEmail clsEmail TestEmail = new clsEmail(); //test data to store result of validation Boolean OK; //test data to the property OK = TestEmail.Valid(""); //check to see if result is ok Assert.IsFalse(OK); }
public void EmailAddressExtreme() { //instance of the clsEmail clsEmail TestEmail = new clsEmail(); //test data to store result of validation Boolean OK; //test data to the property OK = TestEmail.Valid("*****@*****.**"); //check to see if result is ok Assert.IsFalse(OK); }
public void EmailAddressMid() { //instance of the clsEmail clsEmail TestEmail = new clsEmail(); //test data to store result of validation Boolean OK; //test data to the property OK = TestEmail.Valid("*****@*****.**"); //check to see if result is ok Assert.IsTrue(OK); }
public void EmailValidMethodOK() { //instance of clsEmail clsEmail AEmail = new clsEmail(); //test data to store result of validation Boolean OK = false; //assign the data to the property string SomeEmail = "*****@*****.**"; //invoke the method OK = AEmail.Valid(SomeEmail); //check to see if result is ok Assert.IsTrue(OK); }