Пример #1
0
        public void GivenSadReturnUnSuccessfulForPassword(string message)
        {
            //Arrange
            UserRegister userRegister = new UserRegister(message);
            //Act
            var result = userRegister.checkPassword();

            //Assert
            Assert.AreEqual("Entry UnSuccessfull", result);
        }
Пример #2
0
 public void GivenPasswordThrowInvalidPasswordExceptionIfInvalid(string password)
 {
     try
     {
         //Arrange
         UserRegister userRegister = new UserRegister();
         //Act
         userRegister.checkPassword(password);
     }
     catch (UserRegistrationException e)
     {
         //Assert
         Assert.AreEqual("Password is Invalid", e.Message);
     }
 }