예제 #1
0
        public void AnswerQuestion_ResponseIsValid_AnswerIsWrong()
        {
            int       responseIndex = 2;
            Assesment a             = new Assesment(DEFAULT_ID);
            AssesmentAnswerQuestionResult result = a.AnswerQuestion(responseIndex);

            Assert.IsFalse(a.ResponseWasRight());
        }
예제 #2
0
        public void AnswerQuestion_ResponseIsValid_AnswerIsSuccessful()
        {
            int       responseIndex = 1;
            Assesment a             = new Assesment(DEFAULT_ID);
            AssesmentAnswerQuestionResult result = a.AnswerQuestion(responseIndex);

            Assert.AreEqual(true, a.ResponseWasRight());
        }