public void CreatingTestFromScratch_AddingQuestion_AddingThisSameQuestion() { var Builder = new TestBuilder(); var q = new MultipleChoiceQuestion() { Scoring = new Scoring(ScoringMode.EvenParts, 10), }; Builder.AddQuestion(q); Builder.AddQuestion(q); }
public void CreatingTestFromScratch_AddingQuestion_NullQuestion() { var Builder = new TestBuilder(); Builder.AddQuestion(null); }
public void CreatingTestFromScratch_AddingQuestion_MaxQuestionsNumberReached() { var Test = new Test() { Questions = new List<Question>(new Question[TestBuilder.MaximumQuestionsCount]), }; var Builder = new TestBuilder(Test); Builder.AddQuestion(new MultipleChoiceQuestion()); }
public void CreatingTestFromScratch_AddingGrading_CorrectScore() { var Builder = new TestBuilder(); var grading = new GradingPoints(); grading.UpdateMark(Marks.A, 100, 80); var Question = new MultipleChoiceQuestion() { CorrectAnswerIndex = 1, Options = new List<string>() { "1", "2", "3" }, Task = new TaskContent("dsdsd"), Scoring = new Scoring(ScoringMode.FullAnswer, 100), }; Builder.AddQuestion(Question); Builder.AddGrading(grading); }