Exemplo n.º 1
0
        public void DetermineCorrectlyThatPasswordDoesMeetComplexityConditionsWhenCharacterTypesAreGrouped()
        {
            var  actual = new Password("abode>>AB12+-", 5, 2, 2, 2);
            bool result = actual.CheckPasswordComplexity();

            Assert.True(result);
        }
Exemplo n.º 2
0
        DetermineCorrectlyThatPasswordDoesMeetComplexityConditionsWhenItContainsAndIsAllowedToContainAmbiguousAndSimilarCharacters()
        {
            var  actual = new Password("abode1}AB/23", 5, 2, 2, 2);
            bool result = actual.CheckPasswordComplexity();

            Assert.True(result);
        }
Exemplo n.º 3
0
        DetermineCorrectlyThatPasswordDoesMeetComplexityConditionsWhenZeroDigitsAndZeroSymbolsAreRequired()
        {
            var  actual = new Password("abode;AB/123", 5, 2, 2, 2);
            bool result = actual.CheckPasswordComplexity();

            Assert.True(result);
        }
Exemplo n.º 4
0
        public void DetermineCorrectlyThatPasswordDoesNotMeetComplexityConditionsWhenThereAreNotEnoughSymbols()
        {
            var  actual = new Password("AbodeAB12m\"-", 5, 2, 2, 1);
            bool result = actual.CheckPasswordComplexity();

            Assert.True(result);
        }
Exemplo n.º 5
0
        public void DetermineCorrectlyThatPasswordDoesNotMeetComplexityConditionsWhenThereAreNotEnoughDigits()
        {
            Password actual = new Password("abodeAB/12+-", 5, 2, 1, 2);
            bool     result = actual.CheckPasswordComplexity();

            Assert.True(result);
        }
Exemplo n.º 6
0
        DetermineCorrectlyThatPasswordDoesNotMeetComplexityConditionsWhenThereAreNotEnoughUppercaseLetters()
        {
            var  actual = new Password("abodeAb.12+-", 5, 1, 2, 2);
            bool result = actual.CheckPasswordComplexity();

            Assert.True(result);
        }
Exemplo n.º 7
0
        public void DetermineCorrectlyThatPasswordDoesMeetComplexityConditionsWhenCharacterTypesAreMixed()
        {
            var  actual = new Password("a)+bB-1cdeA2fG=3", 5, 2, 2, 2);
            bool result = actual.CheckPasswordComplexity();

            Assert.True(result);
        }