Exemplo n.º 1
0
        public void AnswerQuestion_ResponseIsNotValid_AnswerQuestionInvalidResponse()
        {
            Assesment a = new Assesment(DEFAULT_ID);
            AssesmentAnswerQuestionResult result = a.AnswerQuestion(0);

            Assert.AreEqual(AssesmentAnswerQuestionResult.InvalidResponse, result);
        }
Exemplo n.º 2
0
        public void AnswerQuestion_ResponseIsValid_AnswerIsWrong()
        {
            int       responseIndex = 2;
            Assesment a             = new Assesment(DEFAULT_ID);
            AssesmentAnswerQuestionResult result = a.AnswerQuestion(responseIndex);

            Assert.IsFalse(a.ResponseWasRight());
        }
Exemplo n.º 3
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());
        }