public bool PasswordInput(string pass) { if (_validation.CheckPassword(pass)) { Presenter?.SetPasswordState(EState.Success); return(true); } Presenter?.SetPasswordState(EState.Fail); return(false); }
public void TestPass(string pass, bool isValid) { Assert.AreEqual(isValid, _validation.CheckPassword(pass)); }