Пример #1
0
        public void GivenEmailIds_WhenValidate_ShouldReturnTrue(string email)
        {
            //Arrange
            ValidateUserRegistration user = new ValidateUserRegistration();
            //Act
            bool result = user.ValidateEmail2(email);

            //Assert
            Assert.IsTrue(result);
        }
Пример #2
0
        public void GivenPassword_WhenValidate_ShouldReturnTrue()
        {
            //Arrange
            ValidateUserRegistration user = new ValidateUserRegistration();
            string password = "******";
            //Act
            bool result = user.ValidatePassword(password);

            //Assert
            Assert.IsTrue(result);
        }
Пример #3
0
        public void GivenEmailId_WhenValidate_ShouldReturnTrue()
        {
            //Arrange
            ValidateUserRegistration user = new ValidateUserRegistration();
            string email = "*****@*****.**";
            //Act
            bool result = user.ValidateEmail(email);

            //Assert
            Assert.IsTrue(result);
        }
Пример #4
0
        public void GivenMobileNumber_WhenValidate_ShouldReturnTrue()
        {
            //Arrange
            ValidateUserRegistration user = new ValidateUserRegistration();
            string mobileNumber           = "91 6234517890";
            //Act
            bool result = user.ValidateMobileNo(mobileNumber);

            //Assert
            Assert.IsTrue(result);
        }
Пример #5
0
        public void GivenUserLastName_WhenValidate_ShouldReturnTrue()
        {
            //Arrange
            ValidateUserRegistration user = new ValidateUserRegistration();
            string lastName = "Gupta";
            //Act
            bool result = user.ValidateFirstName(lastName);

            //Assert
            Assert.IsTrue(result);
        }