Ejemplo n.º 1
0
        public void RandomAnswersYouSay()
        {
            _target = new Booklet("A Booklet");
            var quiz     = new Quiz("A Quiz");
            var question = new Question("Test1", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });

            quiz.AddItem(question);
            var question2 = new Question("Test2", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });

            quiz.AddItem(question2);
            var question3 = new Question("Test3", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });

            quiz.AddItem(question3);
            var question4 = new Question("Test4", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });

            quiz.AddItem(question4);
            _target.AddItem(quiz);
            var a  = _target.GetOpenQuiz().GetRandomQuestions();
            var a2 = _target.GetOpenQuiz().GetAllQuestions();
            var a3 = _target.GetOpenQuiz().GetRandomQuestions();

            _target.AddItem(quiz);
            Assert.AreNotEqual(a, a2, "These Should not be equal (But this test will fail one every 5! times)");
        }
Ejemplo n.º 2
0
        public void RandomAnswersYouSay()
        {
            _target = new Quiz("A Quiz");
            var q = new Question("Test", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false), new Answer("Wrong", false), new Answer("Wrong", false)
            });

            _target.AddItem(q);
            var a  = _target.GetOpenQuestion().GetRandomAnswers();
            var a2 = _target.GetNextQuestion().GetAllAnswers();

            _target.AddItem(q);
            Assert.AreNotEqual(a, a2, "These Should not be equal (But this test will fail one every 5! times)");
        }
Ejemplo n.º 3
0
        public void LetsTryResetingAQuiz()
        {
            _target = new Booklet("A Booklet");
            var quiz     = new Quiz("A Quiz");
            var question = new Question("Test", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });

            for (var i = 0; i < 10; i++)
            {
                quiz.AddItem(question);
                _target.AddItem(quiz);
            }
            // Take the Quiz
            Assert.IsNotNull(_target.GetOpenQuiz());
            for (var i = 0; i < 10; i++)
            {
                // We're poping one off each time
                Assert.AreEqual(_target.GetStatus(), Status.InProgress, "The Quiz should be in progress");
                Assert.AreEqual(_target.GetNextQuiz(), quiz);
            }
            // There are no more questions left, we should have a null return
            Assert.AreEqual(Status.Completed, _target.GetStatus(), "Is it done yet?");
            Assert.AreEqual(_target.GetNextQuiz(), null);
            Assert.AreEqual(Status.Completed, _target.GetStatus(), "The Quiz should be done");
        }
Ejemplo n.º 4
0
 public void AddItemTest()
 {
     string title = string.Empty; // TODO: Initialize to an appropriate value
     Quiz target = new Quiz(title); // TODO: Initialize to an appropriate value
     Question item = null; // TODO: Initialize to an appropriate value
     target.AddItem(item);
     Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }
Ejemplo n.º 5
0
        public void AddItemTest()
        {
            string   title  = string.Empty;    // TODO: Initialize to an appropriate value
            Quiz     target = new Quiz(title); // TODO: Initialize to an appropriate value
            Question item   = null;            // TODO: Initialize to an appropriate value

            target.AddItem(item);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
Ejemplo n.º 6
0
 public void CreateQuizAndAddQuestion()
 {
     _target = new Quiz("A Quiz");
     var q = new Question("Test",
                             new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
     Assert.IsNotNull(_target);
     _target.AddItem(q);
     Assert.IsNotNull(_target);
     _target.GetOpenQuestion();
     Assert.AreEqual(_target.GetNextQuestion(), q);
     Assert.AreEqual(_target.GetOpenQuestion(), null);
     Assert.AreEqual(_target.GetNextQuestion(), null);
 }
Ejemplo n.º 7
0
        public void CreateQuizAndAddQuestion()
        {
            _target = new Quiz("A Quiz");
            var q = new Question("Test",
                                 new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });

            Assert.IsNotNull(_target);
            _target.AddItem(q);
            Assert.IsNotNull(_target);
            _target.GetOpenQuestion();
            Assert.AreEqual(_target.GetNextQuestion(), q);
            Assert.AreEqual(_target.GetOpenQuestion(), null);
            Assert.AreEqual(_target.GetNextQuestion(), null);
        }
Ejemplo n.º 8
0
        public RedirectResult AddToQuiz(Quiz quiz, int questionId, int answerId, string returnUrl)
        {
            Question question = _context.Questions
                                .FirstOrDefault(q => q.Id == questionId);

            Answer answer = _context.Answers
                            .FirstOrDefault(a => a.Id == answerId);

            if (question != null && answer != null)
            {
                quiz.AddItem(question, answer);
            }


            return(Redirect(returnUrl));
        }
Ejemplo n.º 9
0
 public void LetsTryResetingAQuiz()
 {
     _target = new Quiz("A Quiz");
     var q = new Question("Test", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
     for (var i = 0; i < 10; i++)
     {
         _target.AddItem(q);
     }
     // Take the Quiz
     Assert.IsNotNull(_target.GetOpenQuestion());
     for (var i = 0; i < 10; i++)
     {
         // We're poping one off each time
         Assert.AreEqual(_target.GetStatus(), Status.InProgress, "The Quiz should be in progress");
         Assert.AreEqual(_target.GetNextQuestion(), q);
     }
     // There are no more questions left, we should have a null return
     Assert.AreEqual(Status.Completed, _target.GetStatus(), "Is it done yet?");
     Assert.AreEqual(_target.GetNextQuestion(), null);
     Assert.AreEqual(Status.Completed, _target.GetStatus(), "The Quiz should be done");
 }
Ejemplo n.º 10
0
 public void CreateQuizAndAddQuestions()
 {
     _target = new Booklet("A Booklet");
     var quiz = new Quiz("A Quiz");
     var question = new Question("Test", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
     for (var i = 0; i < 10; i++)
     {
         quiz.AddItem(question);
         _target.AddItem(quiz);
     }
     Assert.AreEqual(_target.GetStatus(), Status.NotStarted, "The Quiz should not have started");
     Assert.IsNotNull(_target.GetOpenQuiz());
     for (var i = 0; i < 10; i++)
     {
         // We're poping one off each time
         Assert.AreEqual(_target.GetStatus(), Status.InProgress, "The Quiz should be in progress");
         Assert.AreEqual(_target.GetNextQuiz(), quiz);
     }
     // There are no more questions left, we should have a null return
     Assert.AreEqual(_target.GetStatus(), Status.Completed, "Is it done yet?");
     Assert.AreEqual(_target.GetNextQuiz(), null);
     Assert.AreEqual(_target.GetStatus(), Status.Completed, "The Quiz should be done");
 }
Ejemplo n.º 11
0
        public void CreateQuizAndAddQuestions()
        {
            _target = new Quiz("A Quiz");
            var q = new Question("Test", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });

            for (var i = 0; i < 10; i++)
            {
                _target.AddItem(q);
            }
            Assert.AreEqual(_target.GetStatus(), Status.NotStarted, "The Quiz should not have started");
            Assert.IsNotNull(_target.GetOpenQuestion());
            for (var i = 0; i < 10; i++)
            {
                // We're poping one off each time
                Assert.AreEqual(_target.GetStatus(), Status.InProgress, "The Quiz should be in progress");
                Assert.AreEqual(_target.GetNextQuestion(), q);
            }
            // There are no more questions left, we should have a null return
            Assert.AreEqual(_target.GetStatus(), Status.Completed, "Is it done yet?");
            Assert.AreEqual(_target.GetNextQuestion(), null);
            Assert.AreEqual(_target.GetStatus(), Status.Completed, "The Quiz should be done");
        }
Ejemplo n.º 12
0
        public Booklet PopulateSystem()
        {
            Booklet math = new Booklet("Math");
            //Booklet history = new Booklet("History");

            Quiz mqz1 = new Quiz("Test Quiz 1");
            Quiz mqz2 = new Quiz("Test Quiz 2");

/*			Quiz mqz3 = new Quiz("Test Quiz 3");
 *                      Quiz mqz4 = new Quiz("Test Quiz 4");
 *                      Quiz mqz5 = new Quiz("Test Quiz 5");
 *                      Quiz mqz6 = new Quiz("Test Quiz 6");
 *                      Quiz mqz7 = new Quiz("Test Quiz 7");*/
            //Quiz hqz1 = new Quiz("Test Quiz 1 second");
            //Quiz hqz2 = new Quiz("Test Quiz 2 second");

            Question mq11 = new Question("What is 1+1?", new List <Answer> {
                new Answer("2", true), new Answer("1", false), new Answer("4", false), new Answer("3", false)
            });
            Question mq12 = new Question("What is 1+5?", new List <Answer> {
                new Answer("6", true), new Answer("5", false), new Answer("12", false), new Answer("7", false)
            });
            Question mq13 = new Question("What is 13-2?", new List <Answer> {
                new Answer("11", true), new Answer("12", false), new Answer("10", false), new Answer("3", false)
            });

            Question mq21 = new Question("What is 1*1?", new List <Answer> {
                new Answer("1", true), new Answer("2", false), new Answer("4", false), new Answer("3", false)
            });
            Question mq22 = new Question("What is 1*5?", new List <Answer> {
                new Answer("6", false), new Answer("5", true), new Answer("12", false), new Answer("7", false)
            });
            Question mq23 = new Question("What is 14/2?", new List <Answer> {
                new Answer("7", true), new Answer("12", false), new Answer("10", false), new Answer("3", false)
            });

/*
 *                      Question mq31 = new Question("What is 1*1?", new List<Answer> { new Answer("1", true), new Answer("2", false), new Answer("4", false), new Answer("3", false) });
 *                      Question mq32 = new Question("What is 1*5?", new List<Answer> { new Answer("6", false), new Answer("5", true), new Answer("12", false), new Answer("7", false) });
 *                      Question mq33 = new Question("What is 14/2?", new List<Answer> { new Answer("7", true), new Answer("12", false), new Answer("10", false), new Answer("3", false) });
 *
 *                      Question mq41 = new Question("What is 1*1?", new List<Answer> { new Answer("1", true), new Answer("2", false), new Answer("4", false), new Answer("3", false) });
 *                      Question mq42 = new Question("What is 1*5?", new List<Answer> { new Answer("6", false), new Answer("5", true), new Answer("12", false), new Answer("7", false) });
 *                      Question mq43 = new Question("What is 14/2?", new List<Answer> { new Answer("7", true), new Answer("12", false), new Answer("10", false), new Answer("3", false) });
 *
 *                      Question mq51 = new Question("What is 1*1?", new List<Answer> { new Answer("1", true), new Answer("2", false), new Answer("4", false), new Answer("3", false) });
 *                      Question mq52 = new Question("What is 1*5?", new List<Answer> { new Answer("6", false), new Answer("5", true), new Answer("12", false), new Answer("7", false) });
 *                      Question mq53 = new Question("What is 14/2?", new List<Answer> { new Answer("7", true), new Answer("12", false), new Answer("10", false), new Answer("3", false) });
 *
 *                      Question mq61 = new Question("What is 1*1?", new List<Answer> { new Answer("1", true), new Answer("2", false), new Answer("4", false), new Answer("3", false) });
 *                      Question mq62 = new Question("What is 1*5?", new List<Answer> { new Answer("6", false), new Answer("5", true), new Answer("12", false), new Answer("7", false) });
 *                      Question mq63 = new Question("What is 14/2?", new List<Answer> { new Answer("7", true), new Answer("12", false), new Answer("10", false), new Answer("3", false) });
 *
 *                      Question mq71 = new Question("What is 1*1?", new List<Answer> { new Answer("1", true), new Answer("2", false), new Answer("4", false), new Answer("3", false) });
 *                      Question mq72 = new Question("What is 1*5?", new List<Answer> { new Answer("6", false), new Answer("5", true), new Answer("12", false), new Answer("7", false) });
 *                      Question mq73 = new Question("What is 14/2?", new List<Answer> { new Answer("7", true), new Answer("12", false), new Answer("10", false), new Answer("3", false) });
 */

            mqz1.AddItem(mq11);
            mqz1.AddItem(mq12);
            mqz1.AddItem(mq13);

            mqz2.AddItem(mq21);
            mqz2.AddItem(mq22);
            mqz2.AddItem(mq23);

/*			mqz3.AddItem(mq31);
 *                      mqz3.AddItem(mq32);
 *                      mqz3.AddItem(mq33);
 *
 *                      mqz4.AddItem(mq41);
 *                      mqz4.AddItem(mq42);
 *                      mqz4.AddItem(mq43);
 *
 *                      mqz5.AddItem(mq51);
 *                      mqz5.AddItem(mq52);
 *                      mqz5.AddItem(mq53);
 *
 *                      mqz6.AddItem(mq61);
 *                      mqz6.AddItem(mq62);
 *                      mqz6.AddItem(mq63);
 *
 *                      mqz7.AddItem(mq71);
 *                      mqz7.AddItem(mq72);
 *                      mqz7.AddItem(mq73);*/


            math.AddItem(mqz1);
            math.AddItem(mqz2);
            //math.AddItem(mqz3);
            //math.AddItem(mqz4);
            //math.AddItem(mqz5);
            //math.AddItem(mqz6);
            //math.AddItem(mqz7);
            //history.AddItem(hqz1);
            //history.AddItem(hqz2);

            //booklets.Add(math);
            return(math);
        }
Ejemplo n.º 13
0
        public Booklet PopulateSystem()
        {
            Booklet math = new Booklet("Math");
            //Booklet history = new Booklet("History");

            Quiz mqz1 = new Quiz("Test Quiz 1");
            Quiz mqz2 = new Quiz("Test Quiz 2");
            /*			Quiz mqz3 = new Quiz("Test Quiz 3");
            Quiz mqz4 = new Quiz("Test Quiz 4");
            Quiz mqz5 = new Quiz("Test Quiz 5");
            Quiz mqz6 = new Quiz("Test Quiz 6");
            Quiz mqz7 = new Quiz("Test Quiz 7");*/
            //Quiz hqz1 = new Quiz("Test Quiz 1 second");
            //Quiz hqz2 = new Quiz("Test Quiz 2 second");

            Question mq11 = new Question("What is 1+1?", new List<Answer> { new Answer("2", true), new Answer("1", false), new Answer("4", false), new Answer("3", false) });
            Question mq12 = new Question("What is 1+5?", new List<Answer> { new Answer("6", true), new Answer("5", false), new Answer("12", false), new Answer("7", false) });
            Question mq13 = new Question("What is 13-2?", new List<Answer> { new Answer("11", true), new Answer("12", false), new Answer("10", false), new Answer("3", false) });

            Question mq21 = new Question("What is 1*1?", new List<Answer> { new Answer("1", true), new Answer("2", false), new Answer("4", false), new Answer("3", false) });
            Question mq22 = new Question("What is 1*5?", new List<Answer> { new Answer("6", false), new Answer("5", true), new Answer("12", false), new Answer("7", false) });
            Question mq23 = new Question("What is 14/2?", new List<Answer> { new Answer("7", true), new Answer("12", false), new Answer("10", false), new Answer("3", false) });

            /*
            Question mq31 = new Question("What is 1*1?", new List<Answer> { new Answer("1", true), new Answer("2", false), new Answer("4", false), new Answer("3", false) });
            Question mq32 = new Question("What is 1*5?", new List<Answer> { new Answer("6", false), new Answer("5", true), new Answer("12", false), new Answer("7", false) });
            Question mq33 = new Question("What is 14/2?", new List<Answer> { new Answer("7", true), new Answer("12", false), new Answer("10", false), new Answer("3", false) });

            Question mq41 = new Question("What is 1*1?", new List<Answer> { new Answer("1", true), new Answer("2", false), new Answer("4", false), new Answer("3", false) });
            Question mq42 = new Question("What is 1*5?", new List<Answer> { new Answer("6", false), new Answer("5", true), new Answer("12", false), new Answer("7", false) });
            Question mq43 = new Question("What is 14/2?", new List<Answer> { new Answer("7", true), new Answer("12", false), new Answer("10", false), new Answer("3", false) });

            Question mq51 = new Question("What is 1*1?", new List<Answer> { new Answer("1", true), new Answer("2", false), new Answer("4", false), new Answer("3", false) });
            Question mq52 = new Question("What is 1*5?", new List<Answer> { new Answer("6", false), new Answer("5", true), new Answer("12", false), new Answer("7", false) });
            Question mq53 = new Question("What is 14/2?", new List<Answer> { new Answer("7", true), new Answer("12", false), new Answer("10", false), new Answer("3", false) });

            Question mq61 = new Question("What is 1*1?", new List<Answer> { new Answer("1", true), new Answer("2", false), new Answer("4", false), new Answer("3", false) });
            Question mq62 = new Question("What is 1*5?", new List<Answer> { new Answer("6", false), new Answer("5", true), new Answer("12", false), new Answer("7", false) });
            Question mq63 = new Question("What is 14/2?", new List<Answer> { new Answer("7", true), new Answer("12", false), new Answer("10", false), new Answer("3", false) });

            Question mq71 = new Question("What is 1*1?", new List<Answer> { new Answer("1", true), new Answer("2", false), new Answer("4", false), new Answer("3", false) });
            Question mq72 = new Question("What is 1*5?", new List<Answer> { new Answer("6", false), new Answer("5", true), new Answer("12", false), new Answer("7", false) });
            Question mq73 = new Question("What is 14/2?", new List<Answer> { new Answer("7", true), new Answer("12", false), new Answer("10", false), new Answer("3", false) });
            */

            mqz1.AddItem(mq11);
            mqz1.AddItem(mq12);
            mqz1.AddItem(mq13);

            mqz2.AddItem(mq21);
            mqz2.AddItem(mq22);
            mqz2.AddItem(mq23);

            /*			mqz3.AddItem(mq31);
            mqz3.AddItem(mq32);
            mqz3.AddItem(mq33);

            mqz4.AddItem(mq41);
            mqz4.AddItem(mq42);
            mqz4.AddItem(mq43);

            mqz5.AddItem(mq51);
            mqz5.AddItem(mq52);
            mqz5.AddItem(mq53);

            mqz6.AddItem(mq61);
            mqz6.AddItem(mq62);
            mqz6.AddItem(mq63);

            mqz7.AddItem(mq71);
            mqz7.AddItem(mq72);
            mqz7.AddItem(mq73);*/

            math.AddItem(mqz1);
            math.AddItem(mqz2);
            //math.AddItem(mqz3);
            //math.AddItem(mqz4);
            //math.AddItem(mqz5);
            //math.AddItem(mqz6);
            //math.AddItem(mqz7);
            //history.AddItem(hqz1);
            //history.AddItem(hqz2);

            //booklets.Add(math);
            return math;
        }
Ejemplo n.º 14
0
        public List <Booklet> LoadBooklets(PlayerIndex playerIndex)
        {
            this.WaitOnOperation();
            List <Booklet> booklets = new List <Booklet>();

            foreach (string bookletName in _nameWrapper.BookletNames)
            {
                FindCabinet(playerIndex, CabinetMode.Open, bookletName);
                this.WaitOnOperation();
                booklets.Add(_currentBooklet);
            }

            //Hack for initialization with no booklets
            if (booklets.Count == 0)
            {
                Booklet math = new Booklet("Math");
                //Booklet history = new Booklet("History");

                Quiz mqz1 = new Quiz("Test Quiz 1");
                Quiz mqz2 = new Quiz("Test Quiz 2");

/*				Quiz mqz3 = new Quiz("Test Quiz 3");
 *                              Quiz mqz4 = new Quiz("Test Quiz 4");
 *                              Quiz mqz5 = new Quiz("Test Quiz 5");
 *                              Quiz mqz6 = new Quiz("Test Quiz 6");
 *                              Quiz mqz7 = new Quiz("Test Quiz 7");*/
                //Quiz hqz1 = new Quiz("Test Quiz 1 second");
                //Quiz hqz2 = new Quiz("Test Quiz 2 second");

                Question mq11 = new Question("What is 1+1?", new List <Answer> {
                    new Answer("2", true), new Answer("1", false), new Answer("4", false), new Answer("3", false)
                });
                Question mq12 = new Question("What is 1+5?", new List <Answer> {
                    new Answer("6", true), new Answer("5", false), new Answer("12", false), new Answer("7", false)
                });
                Question mq13 = new Question("What is 13-2?", new List <Answer> {
                    new Answer("11", true), new Answer("12", false), new Answer("10", false), new Answer("3", false)
                });

                Question mq21 = new Question("What is 1*1?", new List <Answer> {
                    new Answer("1", true), new Answer("2", false), new Answer("4", false), new Answer("3", false)
                });
                Question mq22 = new Question("What is 1*5?", new List <Answer> {
                    new Answer("6", false), new Answer("5", true), new Answer("12", false), new Answer("7", false)
                });
                Question mq23 = new Question("What is 14/2?", new List <Answer> {
                    new Answer("7", true), new Answer("12", false), new Answer("10", false), new Answer("3", false)
                });

/*
 *
 *                              Question mq31 = new Question("What is 1*1?", new List<Answer> { new Answer("1", true), new Answer("2", false), new Answer("4", false), new Answer("3", false) });
 *                              Question mq32 = new Question("What is 1*5?", new List<Answer> { new Answer("6", false), new Answer("5", true), new Answer("12", false), new Answer("7", false) });
 *                              Question mq33 = new Question("What is 14/2?", new List<Answer> { new Answer("7", true), new Answer("12", false), new Answer("10", false), new Answer("3", false) });
 *
 *                              Question mq41 = new Question("What is 1*1?", new List<Answer> { new Answer("1", true), new Answer("2", false), new Answer("4", false), new Answer("3", false) });
 *                              Question mq42 = new Question("What is 1*5?", new List<Answer> { new Answer("6", false), new Answer("5", true), new Answer("12", false), new Answer("7", false) });
 *                              Question mq43 = new Question("What is 14/2?", new List<Answer> { new Answer("7", true), new Answer("12", false), new Answer("10", false), new Answer("3", false) });
 *
 *                              Question mq51 = new Question("What is 1*1?", new List<Answer> { new Answer("1", true), new Answer("2", false), new Answer("4", false), new Answer("3", false) });
 *                              Question mq52 = new Question("What is 1*5?", new List<Answer> { new Answer("6", false), new Answer("5", true), new Answer("12", false), new Answer("7", false) });
 *                              Question mq53 = new Question("What is 14/2?", new List<Answer> { new Answer("7", true), new Answer("12", false), new Answer("10", false), new Answer("3", false) });
 *
 *                              Question mq61 = new Question("What is 1*1?", new List<Answer> { new Answer("1", true), new Answer("2", false), new Answer("4", false), new Answer("3", false) });
 *                              Question mq62 = new Question("What is 1*5?", new List<Answer> { new Answer("6", false), new Answer("5", true), new Answer("12", false), new Answer("7", false) });
 *                              Question mq63 = new Question("What is 14/2?", new List<Answer> { new Answer("7", true), new Answer("12", false), new Answer("10", false), new Answer("3", false) });
 *
 *                              Question mq71 = new Question("What is 1*1?", new List<Answer> { new Answer("1", true), new Answer("2", false), new Answer("4", false), new Answer("3", false) });
 *                              Question mq72 = new Question("What is 1*5?", new List<Answer> { new Answer("6", false), new Answer("5", true), new Answer("12", false), new Answer("7", false) });
 *                              Question mq73 = new Question("What is 14/2?", new List<Answer> { new Answer("7", true), new Answer("12", false), new Answer("10", false), new Answer("3", false) });
 */

                mqz1.AddItem(mq11);
                mqz1.AddItem(mq12);
                mqz1.AddItem(mq13);

                mqz2.AddItem(mq21);
                mqz2.AddItem(mq22);
                mqz2.AddItem(mq23);

/*				mqz3.AddItem(mq31);
 *                              mqz3.AddItem(mq32);
 *                              mqz3.AddItem(mq33);
 *
 *                              mqz4.AddItem(mq41);
 *                              mqz4.AddItem(mq42);
 *                              mqz4.AddItem(mq43);
 *
 *                              mqz5.AddItem(mq51);
 *                              mqz5.AddItem(mq52);
 *                              mqz5.AddItem(mq53);
 *
 *                              mqz6.AddItem(mq61);
 *                              mqz6.AddItem(mq62);
 *                              mqz6.AddItem(mq63);
 *
 *                              mqz7.AddItem(mq71);
 *                              mqz7.AddItem(mq72);
 *                              mqz7.AddItem(mq73);*/


                //math.AddItem(mqz7);
                //math.AddItem(mqz6);
                //math.AddItem(mqz5);
                //math.AddItem(mqz4);
                //math.AddItem(mqz3);
                math.AddItem(mqz2);
                math.AddItem(mqz1);
                //history.AddItem(hqz1);
                //history.AddItem(hqz2);

                booklets.Add(math);
                //booklets.Add(history);
            }
            return(booklets);
        }
Ejemplo n.º 15
0
        public void GetASpecificQuiz()
        {
            _target = new Booklet("A Booklet");
            var quiz     = new Quiz("A Quiz 0");
            var question = new Question("Test1", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });

            quiz.AddItem(question);
            var question2 = new Question("Test2", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });

            quiz.AddItem(question2);
            var question3 = new Question("Test3", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });

            quiz.AddItem(question3);
            var question4 = new Question("Test4", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });

            quiz.AddItem(question4);
            _target.AddItem(quiz);

            quiz     = new Quiz("A Quiz 1");
            question = new Question("Test1", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });
            quiz.AddItem(question);
            question2 = new Question("Test2", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });
            quiz.AddItem(question2);
            question3 = new Question("Test3", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });
            quiz.AddItem(question3);
            question4 = new Question("Test4", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });
            quiz.AddItem(question4);
            _target.AddItem(quiz);

            quiz     = new Quiz("A Quiz 2");
            question = new Question("Test1", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });
            quiz.AddItem(question);
            question2 = new Question("Test2", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });
            quiz.AddItem(question2);
            question3 = new Question("Test3", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });
            quiz.AddItem(question3);
            question4 = new Question("Test4", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });
            quiz.AddItem(question4);
            _target.AddItem(quiz);

            quiz     = new Quiz("A Quiz 3");
            question = new Question("Test1", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });
            quiz.AddItem(question);
            question2 = new Question("Test2", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });
            quiz.AddItem(question2);
            question3 = new Question("Test3", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });
            quiz.AddItem(question3);
            question4 = new Question("Test4", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });
            quiz.AddItem(question4);
            _target.AddItem(quiz);

            quiz     = new Quiz("A Quiz 4");
            question = new Question("Test1", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });
            quiz.AddItem(question);
            question2 = new Question("Test2", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });
            quiz.AddItem(question2);
            question3 = new Question("Test3", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });
            quiz.AddItem(question3);
            question4 = new Question("Test4", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });
            quiz.AddItem(question4);
            _target.AddItem(quiz);

            quiz     = new Quiz("A Quiz 5");
            question = new Question("Test1", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });
            quiz.AddItem(question);
            question2 = new Question("Test2", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });
            quiz.AddItem(question2);
            question3 = new Question("Test3", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });
            quiz.AddItem(question3);
            question4 = new Question("Test4", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });
            quiz.AddItem(question4);
            _target.AddItem(quiz);

            quiz     = new Quiz("A Quiz 6");
            question = new Question("Test1", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });
            quiz.AddItem(question);
            question2 = new Question("Test2", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });
            quiz.AddItem(question2);
            question3 = new Question("Test3", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });
            quiz.AddItem(question3);
            question4 = new Question("Test4", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });
            quiz.AddItem(question4);
            _target.AddItem(quiz);

            quiz     = new Quiz("A Quiz 7");
            question = new Question("Test1", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });
            quiz.AddItem(question);
            question2 = new Question("Test2", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });
            quiz.AddItem(question2);
            question3 = new Question("Test3", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });
            quiz.AddItem(question3);
            question4 = new Question("Test4", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });
            quiz.AddItem(question4);
            _target.AddItem(quiz);

            quiz     = new Quiz("A Quiz 8");
            question = new Question("Test1", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });
            quiz.AddItem(question);
            question2 = new Question("Test2", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });
            quiz.AddItem(question2);
            question3 = new Question("Test3", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });
            quiz.AddItem(question3);
            question4 = new Question("Test4", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });
            quiz.AddItem(question4);
            _target.AddItem(quiz);

            quiz     = new Quiz("A Quiz 9");
            question = new Question("Test1", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });
            quiz.AddItem(question);
            question2 = new Question("Test2", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });
            quiz.AddItem(question2);
            question3 = new Question("Test3", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });
            quiz.AddItem(question3);
            question4 = new Question("Test4", new List <Answer> {
                new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false)
            });
            quiz.AddItem(question4);
            _target.AddItem(quiz);
            var q = _target.GetSpecificQuiz(2);
            var p = _target.GetSpecificQuiz(6);

            _target.GetNextQuiz();
            _target.GetNextQuiz();
            _target.GetNextQuiz();
            _target.GetNextQuiz();
            var m = _target.GetAsList();

            q = _target.GetSpecificQuiz(2);
            p = _target.GetSpecificQuiz(6);
            //Assert.AreNotEqual(a, a2, "These Should not be equal (But this test will fail one every 5! times)");
        }
Ejemplo n.º 16
0
        public List<Booklet> LoadBooklets(PlayerIndex playerIndex)
        {
            this.WaitOnOperation();
            List<Booklet> booklets = new List<Booklet>();
            foreach (string bookletName in _nameWrapper.BookletNames)
            {
                FindCabinet(playerIndex, CabinetMode.Open, bookletName);
                this.WaitOnOperation();
                booklets.Add(_currentBooklet);
            }

            //Hack for initialization with no booklets
            if (booklets.Count == 0)
            {
                Booklet math = new Booklet("Math");
                //Booklet history = new Booklet("History");

                Quiz mqz1 = new Quiz("Test Quiz 1");
                Quiz mqz2 = new Quiz("Test Quiz 2");
            /*				Quiz mqz3 = new Quiz("Test Quiz 3");
                Quiz mqz4 = new Quiz("Test Quiz 4");
                Quiz mqz5 = new Quiz("Test Quiz 5");
                Quiz mqz6 = new Quiz("Test Quiz 6");
                Quiz mqz7 = new Quiz("Test Quiz 7");*/
                //Quiz hqz1 = new Quiz("Test Quiz 1 second");
                //Quiz hqz2 = new Quiz("Test Quiz 2 second");

                Question mq11 = new Question("What is 1+1?", new List<Answer> { new Answer("2", true), new Answer("1", false), new Answer("4", false), new Answer("3", false) });
                Question mq12 = new Question("What is 1+5?", new List<Answer> { new Answer("6", true), new Answer("5", false), new Answer("12", false), new Answer("7", false) });
                Question mq13 = new Question("What is 13-2?", new List<Answer> { new Answer("11", true), new Answer("12", false), new Answer("10", false), new Answer("3", false) });

                Question mq21 = new Question("What is 1*1?", new List<Answer> { new Answer("1", true), new Answer("2", false), new Answer("4", false), new Answer("3", false) });
                Question mq22 = new Question("What is 1*5?", new List<Answer> { new Answer("6", false), new Answer("5", true), new Answer("12", false), new Answer("7", false) });
                Question mq23 = new Question("What is 14/2?", new List<Answer> { new Answer("7", true), new Answer("12", false), new Answer("10", false), new Answer("3", false) });
            /*

                Question mq31 = new Question("What is 1*1?", new List<Answer> { new Answer("1", true), new Answer("2", false), new Answer("4", false), new Answer("3", false) });
                Question mq32 = new Question("What is 1*5?", new List<Answer> { new Answer("6", false), new Answer("5", true), new Answer("12", false), new Answer("7", false) });
                Question mq33 = new Question("What is 14/2?", new List<Answer> { new Answer("7", true), new Answer("12", false), new Answer("10", false), new Answer("3", false) });

                Question mq41 = new Question("What is 1*1?", new List<Answer> { new Answer("1", true), new Answer("2", false), new Answer("4", false), new Answer("3", false) });
                Question mq42 = new Question("What is 1*5?", new List<Answer> { new Answer("6", false), new Answer("5", true), new Answer("12", false), new Answer("7", false) });
                Question mq43 = new Question("What is 14/2?", new List<Answer> { new Answer("7", true), new Answer("12", false), new Answer("10", false), new Answer("3", false) });

                Question mq51 = new Question("What is 1*1?", new List<Answer> { new Answer("1", true), new Answer("2", false), new Answer("4", false), new Answer("3", false) });
                Question mq52 = new Question("What is 1*5?", new List<Answer> { new Answer("6", false), new Answer("5", true), new Answer("12", false), new Answer("7", false) });
                Question mq53 = new Question("What is 14/2?", new List<Answer> { new Answer("7", true), new Answer("12", false), new Answer("10", false), new Answer("3", false) });

                Question mq61 = new Question("What is 1*1?", new List<Answer> { new Answer("1", true), new Answer("2", false), new Answer("4", false), new Answer("3", false) });
                Question mq62 = new Question("What is 1*5?", new List<Answer> { new Answer("6", false), new Answer("5", true), new Answer("12", false), new Answer("7", false) });
                Question mq63 = new Question("What is 14/2?", new List<Answer> { new Answer("7", true), new Answer("12", false), new Answer("10", false), new Answer("3", false) });

                Question mq71 = new Question("What is 1*1?", new List<Answer> { new Answer("1", true), new Answer("2", false), new Answer("4", false), new Answer("3", false) });
                Question mq72 = new Question("What is 1*5?", new List<Answer> { new Answer("6", false), new Answer("5", true), new Answer("12", false), new Answer("7", false) });
                Question mq73 = new Question("What is 14/2?", new List<Answer> { new Answer("7", true), new Answer("12", false), new Answer("10", false), new Answer("3", false) });
            */

                mqz1.AddItem(mq11);
                mqz1.AddItem(mq12);
                mqz1.AddItem(mq13);

                mqz2.AddItem(mq21);
                mqz2.AddItem(mq22);
                mqz2.AddItem(mq23);

            /*				mqz3.AddItem(mq31);
                mqz3.AddItem(mq32);
                mqz3.AddItem(mq33);

                mqz4.AddItem(mq41);
                mqz4.AddItem(mq42);
                mqz4.AddItem(mq43);

                mqz5.AddItem(mq51);
                mqz5.AddItem(mq52);
                mqz5.AddItem(mq53);

                mqz6.AddItem(mq61);
                mqz6.AddItem(mq62);
                mqz6.AddItem(mq63);

                mqz7.AddItem(mq71);
                mqz7.AddItem(mq72);
                mqz7.AddItem(mq73);*/

                //math.AddItem(mqz7);
                //math.AddItem(mqz6);
                //math.AddItem(mqz5);
                //math.AddItem(mqz4);
                //math.AddItem(mqz3);
                math.AddItem(mqz2);
                math.AddItem(mqz1);
                //history.AddItem(hqz1);
                //history.AddItem(hqz2);

                booklets.Add(math);
                //booklets.Add(history);
            }
            return booklets;
        }
Ejemplo n.º 17
0
 public void RandomAnswersYouSay()
 {
     _target = new Quiz("A Quiz");
     var q = new Question("Test", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false), new Answer("Wrong", false), new Answer("Wrong", false) });
     _target.AddItem(q);
     var a = _target.GetOpenQuestion().GetRandomAnswers();
     var a2 = _target.GetNextQuestion().GetAllAnswers();
     _target.AddItem(q);
     Assert.AreNotEqual(a,a2,"These Should not be equal (But this test will fail one every 5! times)");
 }
Ejemplo n.º 18
0
        public void GetASpecificQuiz()
        {
            _target = new Booklet("A Booklet");
            var quiz = new Quiz("A Quiz 0");
            var question = new Question("Test1", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question);
            var question2 = new Question("Test2", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question2);
            var question3 = new Question("Test3", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question3);
            var question4 = new Question("Test4", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question4);
            _target.AddItem(quiz);

            quiz = new Quiz("A Quiz 1");
            question = new Question("Test1", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question);
            question2 = new Question("Test2", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question2);
            question3 = new Question("Test3", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question3);
            question4 = new Question("Test4", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question4);
            _target.AddItem(quiz);

            quiz = new Quiz("A Quiz 2");
            question = new Question("Test1", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question);
            question2 = new Question("Test2", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question2);
            question3 = new Question("Test3", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question3);
            question4 = new Question("Test4", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question4);
            _target.AddItem(quiz);

            quiz = new Quiz("A Quiz 3");
            question = new Question("Test1", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question);
            question2 = new Question("Test2", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question2);
            question3 = new Question("Test3", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question3);
            question4 = new Question("Test4", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question4);
            _target.AddItem(quiz);

            quiz = new Quiz("A Quiz 4");
            question = new Question("Test1", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question);
            question2 = new Question("Test2", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question2);
            question3 = new Question("Test3", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question3);
            question4 = new Question("Test4", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question4);
            _target.AddItem(quiz);

            quiz = new Quiz("A Quiz 5");
            question = new Question("Test1", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question);
            question2 = new Question("Test2", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question2);
            question3 = new Question("Test3", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question3);
            question4 = new Question("Test4", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question4);
            _target.AddItem(quiz);

            quiz = new Quiz("A Quiz 6");
            question = new Question("Test1", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question);
            question2 = new Question("Test2", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question2);
            question3 = new Question("Test3", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question3);
            question4 = new Question("Test4", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question4);
            _target.AddItem(quiz);

            quiz = new Quiz("A Quiz 7");
            question = new Question("Test1", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question);
            question2 = new Question("Test2", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question2);
            question3 = new Question("Test3", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question3);
            question4 = new Question("Test4", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question4);
            _target.AddItem(quiz);

            quiz = new Quiz("A Quiz 8");
            question = new Question("Test1", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question);
            question2 = new Question("Test2", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question2);
            question3 = new Question("Test3", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question3);
            question4 = new Question("Test4", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question4);
            _target.AddItem(quiz);

            quiz = new Quiz("A Quiz 9");
            question = new Question("Test1", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question);
            question2 = new Question("Test2", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question2);
            question3 = new Question("Test3", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question3);
            question4 = new Question("Test4", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
            quiz.AddItem(question4);
            _target.AddItem(quiz);
            var q = _target.GetSpecificQuiz(2);
            var p = _target.GetSpecificQuiz(6);
            _target.GetNextQuiz();
            _target.GetNextQuiz();
            _target.GetNextQuiz();
            _target.GetNextQuiz();
            var m = _target.GetAsList();
            q = _target.GetSpecificQuiz(2);
            p = _target.GetSpecificQuiz(6);
            //Assert.AreNotEqual(a, a2, "These Should not be equal (But this test will fail one every 5! times)");
        }
Ejemplo n.º 19
0
 public void RandomAnswersYouSay()
 {
     _target = new Booklet("A Booklet");
     var quiz = new Quiz("A Quiz");
     var question = new Question("Test1", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
     quiz.AddItem(question);
     var question2 = new Question("Test2", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
     quiz.AddItem(question2);
     var question3 = new Question("Test3", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
     quiz.AddItem(question3);
     var question4 = new Question("Test4", new List<Answer> { new Answer("Test", false), new Answer("Correct", true), new Answer("Wrong", false) });
     quiz.AddItem(question4);
     _target.AddItem(quiz);
     var a = _target.GetOpenQuiz().GetRandomQuestions();
     var a2 = _target.GetOpenQuiz().GetAllQuestions();
     var a3 = _target.GetOpenQuiz().GetRandomQuestions();
     _target.AddItem(quiz);
     Assert.AreNotEqual(a, a2, "These Should not be equal (But this test will fail one every 5! times)");
 }