Ejemplo n.º 1
0
        public void AddQuestionTest()
        {
            ExamQuestions examQuestions = new ExamQuestions(Language.FirstLanguage);

            foreach (var question in TestHelper.ReadCsv())
            {
                examQuestions.AddQuestion(question);
            }
            Check.That(examQuestions.Questions().Count()).IsStrictlyGreaterThan(0);
        }
Ejemplo n.º 2
0
        public void CheckQuestionTest()
        {
            ExamQuestions examQuestions = new ExamQuestions(Language.FirstLanguage);

            foreach (var question in TestHelper.ReadCsv())
            {
                examQuestions.AddQuestion(question);
            }
            Check.That(examQuestions.Questions().Count()).IsStrictlyGreaterThan(0);


            foreach (var question in examQuestions.Questions())
            {
                examQuestions.CheckQuestion(question.FirstLanguageItem, question);
            }

            Check.That(examQuestions.Passed()).HasSize(examQuestions.Questions().Count);
            Check.That(examQuestions.Passed().Where(c => c.Item1.FirstLanguageItem == c.Item2)).HasSize(examQuestions.Questions().Count);
        }