Exemple #1
0
        public void IsPasswordValid_ShouldCheckIfPasswordIsGood()
        {
            string message;

            string password = "******";


            registrationValidator.IsPasswordValid(password, out message);

            Assert.Matches("password ok", message);
        }
Exemple #2
0
 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;
 }