public void UnansweredQuestionIsNotCorrect() { Question question = SimpleQuizTestFixture.BuildTwoPlusTwoMultipleChoiceQuestion(); Assert.IsFalse(question.IsAnswered); Assert.IsFalse(question.IsCorrectAnswer); }
public void AnsweredQuestionIsCorrect() { Question question = SimpleQuizTestFixture.BuildTwoPlusTwoMultipleChoiceQuestion(); question.SelectAnswerOption = 1; Assert.IsTrue(question.IsAnswered); Assert.IsTrue(question.IsCorrectAnswer); }
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]); }