예제 #1
0
        public void QuizMethod1()
        {
            string diff = "easy";
            string cat  = "15";

            var quiz = QuizLib1.generateQuestion(cat, diff);

            Assert.AreEqual(quiz.response_code, 0);
        }
예제 #2
0
        public void startGame()
        {
            var quiz = QuizLib1.generateQuestion(category, difficulty);

            questionTxtBlock.Text = QuizLib1.getQuestion(quiz);
            correctAnswer         = QuizLib1.getCorrectAnswer(quiz);

            currentQuestion = questionNumber.getQuestionNo();
            questionNumber.questionIncrease();

            string[] answers = QuizLib1.getAnswers(quiz);
            Answer1Btn.Content = answers[0];
            Answer2Btn.Content = answers[1];
            Answer3Btn.Content = answers[2];
            Answer4Btn.Content = answers[3];

            DeathCounter();
        }