Esempio n. 1
0
        public void PasswordWithoutUpperCaseFailsValidation()
        {
            var password = "******".ConvertToSecureString();

            _lowerCaseConstraint = new PasswordIncludesUpperCaseConstraint();
            Assert.That(_lowerCaseConstraint.Validate(password), Is.False);
        }
Esempio n. 2
0
        public void PasswordThatMeetsMinimumLowerCasePassesValidation()
        {
            var password = "******".ConvertToSecureString();

            _lowerCaseConstraint = new PasswordIncludesUpperCaseConstraint(5);
            Assert.That(_lowerCaseConstraint.Validate(password), Is.True);
        }