예제 #1
0
        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("*****@*****.**");
        }
예제 #2
0
        public void CheckForValidEmailAddress3()
        {
            FeedbackValidator feedbackValidator = new FeedbackValidator();

            try
            {
                feedbackValidator.CheckEmailAddress("*****@*****.**");
            }
            catch (Exception)
            {
                Assert.IsTrue(false, "The email address [email protected] should be valid");
            }
        }
예제 #3
0
        public void CheckForInvalidEmailAddress3()
        {
            FeedbackValidator feedbackValidator = new FeedbackValidator();

            feedbackValidator.CheckEmailAddress("email@email@com");
        }
예제 #4
0
        public void CheckForBlankEmailAddress()
        {
            FeedbackValidator feedbackValidator = new FeedbackValidator();

            feedbackValidator.CheckEmailAddress("");
        }