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 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); }