Exemplo n.º 1
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);
        }
Exemplo n.º 2
0
        public void When_Follow_Correct_PatternOf_Mobile_No_Should_Pass()
        {
            UserRegistrstionMain userregistration = new UserRegistrstionMain();
            bool result = userregistration.ValidateMobileNumber("+919932619681");

            Assert.IsTrue(result);
        }
Exemplo n.º 3
0
        public void When_Follow_InCorrect_PatternOf_LastName_Should_Pass()
        {
            UserRegistrstionMain userregistration = new UserRegistrstionMain();
            bool result = userregistration.ValidateLastName("Gh");

            Assert.IsFalse(result);
        }
Exemplo n.º 4
0
        public void When_Follow_Correct_PatternOf_FirstName_Should_Pass()
        {
            UserRegistrstionMain userregistration = new UserRegistrstionMain();
            bool result = userregistration.ValidateFirstName("Soumen");

            Assert.IsTrue(result);
        }
Exemplo n.º 5
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.º 6
0
        public void When_Follow_InCorrect_PatternOf_Password_Rule4_Should_Pass()
        {
            UserRegistrstionMain userregistration = new UserRegistrstionMain();
            bool result = userregistration.ValidatePasswordRule4("soumengh18@");

            Assert.IsFalse(result);
        }
Exemplo n.º 7
0
        public void When_Follow_Correct_PatternOf_Password_Rule3_Should_Pass()
        {
            UserRegistrstionMain userregistration = new UserRegistrstionMain();
            bool result = userregistration.ValidatePasswordRule3("Soumengh18");

            Assert.IsTrue(result);
        }