public void TestEmailInvalid() { //Arrange string test = "[email protected]?"; bool expected = false; //Act ICustomValidation format = new EmailFormatValidation(); bool result = format.Validate(test); //Assert Assert.AreEqual(expected, result); }
public void TestEmailValid() { //Arrange string test = "*****@*****.**"; bool expected = true; //Act ICustomValidation format = new EmailFormatValidation(); bool result = format.Validate(test); //Assert Assert.AreEqual(expected, result); }