Пример #1
0
        public void empty_password_should_return_0_strenght()
        {
            string emptyPassword    = "";
            int    expectedStrenght = emptyPassword.Length * 4;

            int res = CPasswordStrength.CalculateSecurityByLenght(emptyPassword);

            Assert.AreEqual(expectedStrenght, res);
        }
Пример #2
0
        public void password_lenght_should_return_lenght_multiply_by_4()
        {
            string password         = "******";
            int    expectedStrenght = password.Length * 4;

            int res = CPasswordStrength.CalculateSecurityByLenght(password);

            Assert.AreEqual(expectedStrenght, res);
        }