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 password_lenght_should_return_lenght_multiply_by_4() { string password = "******"; int expectedStrenght = password.Length * 4; int res = CPasswordStrength.CalculateSecurityByLenght(password); Assert.AreEqual(expectedStrenght, res); }