public void GivenSadReturnUnSuccessfulForPassword(string message) { //Arrange UserRegister userRegister = new UserRegister(message); //Act var result = userRegister.checkPassword(); //Assert Assert.AreEqual("Entry UnSuccessfull", result); }
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); } }