コード例 #1
0
        public void LongPassword()
        {
            String excessivelyLongPassword = "******";

            ZxcvbnInstance zxcvbn = new ZxcvbnInstance();

            zxcvbn.Score(excessivelyLongPassword);
        }
コード例 #2
0
        public void PasswordTooLong()
        {
            const int maxLength = 4096;
            String    excessivelyLongPassword = new string('x', maxLength + 1);

            ZxcvbnInstance zxcvbn = new ZxcvbnInstance();

            zxcvbn.Score(excessivelyLongPassword);
        }
コード例 #3
0
        public void ScoreIsZeroWithLamePassword()
        {
            ZxcvbnInstance zxcvbn = new ZxcvbnInstance();

            const int zero   = 0;
            int       actual = zxcvbn.Score(LamePassword);

            Assert.AreEqual(zero, actual);
        }