public void CheckingAnswer_NotMatchingAnswerType()
        {
            var answer = new SingleTextBoxAnswer()
            {
                UserAnswer = "",
            };

            var points = Question_3Options.CheckAnswer(answer);
        }
        public void CheckingAnswer_NotMatchingAnswerCount()
        {
            var answer = new MultipleCheckBoxesAnswer()
            {
                UserAnswer = new List <bool>(CorrectAnswer_3Options.Count + 1),
            };

            var points = Question_3Options.CheckAnswer(answer);
        }
        public void CheckingAnswer_NullAnswerContent()
        {
            var Answer = new MultipleCheckBoxesAnswer()
            {
                UserAnswer = null,
            };

            var points = Question_3Options.CheckAnswer(Answer);
        }
        public void CheckingAnswer_FullScoreMode_FullyGoodAnswer()
        {
            var Answer = new MultipleCheckBoxesAnswer()
            {
                UserAnswer = CorrectAnswer_3Options,
            };

            var points = Question_3Options.CheckAnswer(Answer);

            Assert.AreEqual(FullPointScore, points);
        }
        public void CheckingAnswer_FullScoreMode_FullyWrong()
        {
            var badAnswer = new List <bool>();

            foreach (var item in CorrectAnswer_3Options)
            {
                badAnswer.Add(!item);
            }

            var Answer = new MultipleCheckBoxesAnswer()
            {
                UserAnswer = badAnswer,
            };

            var points = Question_3Options.CheckAnswer(Answer);

            Assert.AreEqual(0, points);
        }
 public void CheckingAnswer_NullAnswer()
 {
     var points = Question_3Options.CheckAnswer(null);
 }