Exemple #1
0
        public void UnansweredQuestionIsNotCorrect()
        {
            Question question = SimpleQuizTestFixture.BuildTwoPlusTwoMultipleChoiceQuestion();

            Assert.IsFalse(question.IsAnswered);
            Assert.IsFalse(question.IsCorrectAnswer);
        }
Exemple #2
0
        public void AnsweredQuestionIsCorrect()
        {
            Question question = SimpleQuizTestFixture.BuildTwoPlusTwoMultipleChoiceQuestion();

            question.SelectAnswerOption = 1;

            Assert.IsTrue(question.IsAnswered);
            Assert.IsTrue(question.IsCorrectAnswer);
        }
Exemple #3
0
        public void CreateMultipleChoiceQuestion()
        {
            Question question = SimpleQuizTestFixture.BuildTwoPlusTwoMultipleChoiceQuestion();

            Assert.AreEqual(questionText, question.QuestionText);
            Assert.AreEqual("2", question.AnswerOptions[0]);
            Assert.AreEqual("4", question.AnswerOptions[1]);
            Assert.AreEqual("5", question.AnswerOptions[2]);
        }