Ejemplo n.º 1
0
        public void GetSolutionListTest()
        {
            List <string> solutionList = new List <string>();

            _quiz.ClickStart(10, "Pick up questions randomly");
            Assert.AreEqual(0, _quiz.GetCorrectNumber());
            _quiz.SetRandomQuestionType(1, 1);
            _quiz.SetRandomQuestionNumber(1, 0);
            _quiz.ClickNext();
            _quiz.GetAnswer1("a");
            _quiz.AddSolutionList();
            _quiz.SetRandomQuestionType(2, 3);
            _quiz.SetRandomQuestionNumber(2, 0);
            _quiz.ClickNext();
            _quiz.GetAnswer2("");
            _quiz.AddSolutionList();
            _quiz.SetRandomQuestionType(3, 2);
            _quiz.SetRandomQuestionNumber(3, 1080);
            _quiz.ClickNext();
            _quiz.GetAnswer2("[名]動物園");
            _quiz.AddSolutionList();
            _quiz.SetRandomQuestionType(4, 1);
            _quiz.SetRandomQuestionNumber(4, 1080);
            _quiz.ClickNext();
            _quiz.GetAnswer1("a");
            _quiz.AddSolutionList();
            solutionList = _quiz.GetSolutionList();
            Assert.AreEqual("2. [冠]一個;一種 :  -> a", solutionList[0]);
            Assert.AreEqual("4. [名]動物園 : a -> zoo", solutionList[1]);
        }