public void only_upper_case_password_should_return_strenght_by_formula() { string password = "******"; int expectedStrenght = (password.Length - password.Length) * 2; int res = CPasswordStrength.CalculateSecurityByUpperCaseLettersAmount(password); Assert.AreEqual(expectedStrenght, res); }
public void only_lower_case_password_should_return_0_strenght_password() { string password = "******"; int expectedStrenght = 0; int res = CPasswordStrength.CalculateSecurityByUpperCaseLettersAmount(password); Assert.AreEqual(expectedStrenght, res); }
public void only_letters_password_should_return_0_strenght() { string password = "******"; int expectedStrenght = 0; int res = CPasswordStrength.CalculateSecurityByNumbersAmount(password); Assert.AreEqual(expectedStrenght, res); }
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); }
public void bbb_password_returns_password_6_strenght() { string password = "******"; int expectedStrenght = 6; int res = CPasswordStrength.PasswordStrength(password); Assert.AreEqual(expectedStrenght, res); }
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); }
public void aa1_password_returns_password_72_strenght() { string password = "******"; int expectedStrenght = 16; int res = CPasswordStrength.PasswordStrength(password); Assert.AreEqual(expectedStrenght, res); }
public void only_numbers_password_should_returns_lenght_minus_number_amount() { string password = "******"; int expectedStrenght = -password.Length; int res = CPasswordStrength.CalculateSecurityByOnlyNumbers(password); Assert.AreEqual(expectedStrenght, res); }
public void password_with_one_symbols_should_return_0_strenght() { string password = "******"; int expectedStrenght = 0; int res = CPasswordStrength.CalculateSecurityByReapetedSymbols(password); Assert.AreEqual(expectedStrenght, res); }
public void Qwerty123_password_returns_password_72_strenght() { string password = "******"; int expectedStrenght = 72; int res = CPasswordStrength.PasswordStrength(password); Assert.AreEqual(expectedStrenght, res); }
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); }
public void password_with_repeated_symbols_should_return_reduced_strenght() { string password = "******"; int expectedStrenght = -6; int res = CPasswordStrength.CalculateSecurityByReapetedSymbols(password); Assert.AreEqual(expectedStrenght, res); }
public void password_with_letters_and_numbers_should_return_0_strenght() { string password = "******"; int expectedStrenght = 0; int res = CPasswordStrength.CalculateSecurityByOnlyNumbers(password); Assert.AreEqual(expectedStrenght, res); }
public void empty_password_should_return_0_strenght() { string emptyPassword = ""; int expectedStrenght = emptyPassword.Length * 4; int res = CPasswordStrength.CalculateSecurityByLenght(emptyPassword); Assert.AreEqual(expectedStrenght, res); }
public void number_password_returns_password_7_strenght() { string password = "******"; int expectedStrenght = 7; int res = CPasswordStrength.PasswordStrength(password); Assert.AreEqual(expectedStrenght, res); }
public void combining_password_should_return_strenght_by_formula() { string password = "******"; int expectedStrenght = (password.Length - 3) * 2; int res = CPasswordStrength.CalculateSecurityByUpperCaseLettersAmount(password); Assert.AreEqual(expectedStrenght, res); }
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); }