Esempio n. 1
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;
 }
Esempio n. 2
0
        public void IsPasswordMatch_ShouldChechIfDataIsCurrect()
        {
            string message;

            string password = "******", passwordRepeat = "Slaptazodis";


            registrationValidator.IsPasswordMatch(password, passwordRepeat, out message);

            Assert.Matches("password ok", message);
        }