Exemple #1
0
        public void getUserNoAnswer()
        {
            List<int> answers = new List<int> ();
            answers.Add (2);
            answers.Add (0);
            answers.Add (1);
            QuizData qd = new QuizData (3, answers);

            int result = qd.getUserAnswer (0);
            Assert.AreEqual (-1, result);
        }
Exemple #2
0
        public void getQuizNotCompleted()
        {
            List<int> answers = new List<int> ();
            answers.Add (2);
            answers.Add (0);
            answers.Add (1);
            QuizData qd = new QuizData (3, answers);

            bool result = qd.getQuizCompleted (0);
            Assert.AreEqual (false, result);
        }