public void IsPasswordValid_ShouldCheckIfPasswordIsGood() { string message; string password = "******"; registrationValidator.IsPasswordValid(password, out message); Assert.Matches("password ok", message); }
private void PasswordText_TextChanged(object sender, EventArgs e) { registrationValidator.IsPasswordValid(passwordText.Text, out message); passwordLabel.Text = message; registrationValidator.IsPasswordMatch(passwordText.Text, password2Text.Text, out message); password2Label.Text = message; }