public void GivenEmailIds_WhenValidate_ShouldReturnTrue(string email) { //Arrange ValidateUserRegistration user = new ValidateUserRegistration(); //Act bool result = user.ValidateEmail2(email); //Assert Assert.IsTrue(result); }
public void GivenPassword_WhenValidate_ShouldReturnTrue() { //Arrange ValidateUserRegistration user = new ValidateUserRegistration(); string password = "******"; //Act bool result = user.ValidatePassword(password); //Assert Assert.IsTrue(result); }
public void GivenEmailId_WhenValidate_ShouldReturnTrue() { //Arrange ValidateUserRegistration user = new ValidateUserRegistration(); string email = "*****@*****.**"; //Act bool result = user.ValidateEmail(email); //Assert Assert.IsTrue(result); }
public void GivenMobileNumber_WhenValidate_ShouldReturnTrue() { //Arrange ValidateUserRegistration user = new ValidateUserRegistration(); string mobileNumber = "91 6234517890"; //Act bool result = user.ValidateMobileNo(mobileNumber); //Assert Assert.IsTrue(result); }
public void GivenUserLastName_WhenValidate_ShouldReturnTrue() { //Arrange ValidateUserRegistration user = new ValidateUserRegistration(); string lastName = "Gupta"; //Act bool result = user.ValidateFirstName(lastName); //Assert Assert.IsTrue(result); }