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

            int res = CPasswordStrength.CalculateSecurityByNumbersAmount(password);

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

            int res = CPasswordStrength.CalculateSecurityByNumbersAmount(password);

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

            int res = CPasswordStrength.CalculateSecurityByNumbersAmount(password);

            Assert.AreEqual(expectedStrenght, res);
        }