public void InvalidPassword_TrhowException(string Password) { try { Check.Password(Password); } catch (CustomException Exception) { Assert.AreEqual("Invalid Password", Exception.Message); } }
public void Password_Test() { var Result = User.Password("Qwertyuiq1*"); Assert.AreEqual(true, Result); }