public void GenerateSecurePhraseQuestionOfLength2NeverReturnsTwoSameCharacters() { var passwordManager = new PasswordManager(null); for (int i = 0; i < 1000; ++i) { var question = passwordManager.GetSecurePhraseQuestion(2); Assert.AreEqual(0, question.Item1); Assert.AreEqual(1, question.Item2); } }
public void GenerateSecurePhraseQuestionNeverReturnsTwoSameCharacters() { var passwordManager = new PasswordManager(null); for (int length = 3; length < 11; ++length) { for (int i = 0; i < 1000; ++i) { var question = passwordManager.GetSecurePhraseQuestion(length); Assert.AreNotEqual(question.Item1, question.Item2); Assert.Greater(question.Item2, question.Item1); } } }