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); }
public void only_upper_case_password_should_return_0_strenght() { string password = "******"; int expectedStrenght = 0; int res = CPasswordStrength.CalculateSecurityByLowerCaseLettersAmount(password); Assert.AreEqual(expectedStrenght, res); }