Пример #1
0
 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);
 }
Пример #2
0
 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);
 }
Пример #3
0
 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);
 }
Пример #4
0
 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);
 }
Пример #5
0
 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);
 }