Exemplo n.º 1
0
        public void GivenHappyReturnSuccessfulForMobileNum(string message)
        {
            //Arrange
            UserRegister userRegister = new UserRegister(message);
            //Act
            var result = userRegister.checkMobileNumber();

            //Assert
            Assert.AreEqual("Entry Successfull", result);
        }
Exemplo n.º 2
0
 public void GivenMobileNumberThrowInvalidMobileNumberExceptionIfInvalid(string mobNumber)
 {
     try
     {
         //Arrange
         UserRegister userRegister = new UserRegister();
         //Act
         userRegister.checkMobileNumber(mobNumber);
     }
     catch (UserRegistrationException e)
     {
         //Assert
         Assert.AreEqual("Mobile number is Invalid", e.Message);
     }
 }