public void CheckForDuplicateEmailAddress() { Dictionary <string, FeedbackEntity> currentFeedback = new Dictionary <string, FeedbackEntity>(StringComparer.InvariantCultureIgnoreCase); Dictionary <string, string> currentEmails = new Dictionary <string, string>(StringComparer.InvariantCultureIgnoreCase); currentEmails.Add("*****@*****.**", "Mazon"); FeedbackValidator feedbackValidator = new FeedbackValidator(currentFeedback, currentEmails); feedbackValidator.CheckEmailAddress("*****@*****.**"); }
public void CheckForValidEmailAddress3() { FeedbackValidator feedbackValidator = new FeedbackValidator(); try { feedbackValidator.CheckEmailAddress("*****@*****.**"); } catch (Exception) { Assert.IsTrue(false, "The email address [email protected] should be valid"); } }
public void CheckForInvalidEmailAddress3() { FeedbackValidator feedbackValidator = new FeedbackValidator(); feedbackValidator.CheckEmailAddress("email@email@com"); }
public void CheckForBlankEmailAddress() { FeedbackValidator feedbackValidator = new FeedbackValidator(); feedbackValidator.CheckEmailAddress(""); }