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

            Assert.IsTrue(result);
        }
示例#3
0
        public void When_Follow_InCorrect_PatternOf_LastName_Should_Pass()
        {
            UserRegistrstionMain userregistration = new UserRegistrstionMain();
            bool result = userregistration.ValidateLastName("Gh");

            Assert.IsFalse(result);
        }
示例#4
0
        public void When_Follow_Correct_PatternOf_FirstName_Should_Pass()
        {
            UserRegistrstionMain userregistration = new UserRegistrstionMain();
            bool result = userregistration.ValidateFirstName("Soumen");

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

            Assert.IsFalse(result);
        }
示例#7
0
        public void When_Follow_Correct_PatternOf_Password_Rule3_Should_Pass()
        {
            UserRegistrstionMain userregistration = new UserRegistrstionMain();
            bool result = userregistration.ValidatePasswordRule3("Soumengh18");

            Assert.IsTrue(result);
        }