Ejemplo n.º 1
0
        public void combining_password_should_return_strenght_by_formula()
        {
            string password         = "******";
            int    expectedStrenght = (password.Length - 4) * 2;

            int res = CPasswordStrength.CalculateSecurityByLowerCaseLettersAmount(password);

            Assert.AreEqual(expectedStrenght, res);
        }
Ejemplo n.º 2
0
        public void only_upper_case_password_should_return_0_strenght()
        {
            string password         = "******";
            int    expectedStrenght = 0;

            int res = CPasswordStrength.CalculateSecurityByLowerCaseLettersAmount(password);

            Assert.AreEqual(expectedStrenght, res);
        }