public void LongPassword() { String excessivelyLongPassword = "******"; ZxcvbnInstance zxcvbn = new ZxcvbnInstance(); zxcvbn.Score(excessivelyLongPassword); }
public void PasswordTooLong() { const int maxLength = 4096; String excessivelyLongPassword = new string('x', maxLength + 1); ZxcvbnInstance zxcvbn = new ZxcvbnInstance(); zxcvbn.Score(excessivelyLongPassword); }
public void ScoreIsZeroWithLamePassword() { ZxcvbnInstance zxcvbn = new ZxcvbnInstance(); const int zero = 0; int actual = zxcvbn.Score(LamePassword); Assert.AreEqual(zero, actual); }