예제 #1
0
        public void password_with_letters_and_numbers_should_return_0_strenght()
        {
            string password         = "******";
            int    expectedStrenght = 0;

            int res = CPasswordStrength.CalculateSecurityByOnlyLetters(password);

            Assert.AreEqual(expectedStrenght, res);
        }
예제 #2
0
        public void only_letters_password_should_return_lenght_minus_letters_amount()
        {
            string password         = "******";
            int    expectedStrenght = -password.Length;

            int res = CPasswordStrength.CalculateSecurityByOnlyLetters(password);

            Assert.AreEqual(expectedStrenght, res);
        }