Exemplo n.º 1
0
        public void When_Follow_Every_Correct_PatternOf_Email_Address_Should_Pass()
        {
            UserRegistrstionMain userregistration = new UserRegistrstionMain();
            bool result = userregistration.ValidateEmailAddress("*****@*****.**");

            Assert.IsTrue(result);
            bool result1 = userregistration.ValidateEmailAddress("*****@*****.**");

            Assert.IsTrue(result1);
            bool result3 = userregistration.ValidateEmailAddress("*****@*****.**");

            Assert.IsTrue(result3);
            bool result4 = userregistration.ValidateEmailAddress("*****@*****.**");

            Assert.IsTrue(result4);
            bool result5 = userregistration.ValidateEmailAddress("*****@*****.**");

            Assert.IsTrue(result5);
            bool result6 = userregistration.ValidateEmailAddress("*****@*****.**");

            Assert.IsTrue(result6);
            bool result7 = userregistration.ValidateEmailAddress("*****@*****.**");

            Assert.IsTrue(result7);
            bool result8 = userregistration.ValidateEmailAddress("*****@*****.**");

            Assert.IsTrue(result8);
        }
Exemplo n.º 2
0
        public void When_Follow_InCorrect_PatternOf_Email_Address_Should_Pass()
        {
            UserRegistrstionMain userregistration = new UserRegistrstionMain();
            bool result = userregistration.ValidateEmailAddress("soumen.,[email protected]");

            Assert.IsFalse(result);
        }