public void SeparateQuizzes_ShouldReturnTwoSeparateQuizzes_WhenQuizInTextTwice() { // arrange IEnumerable <string> testObject = TestAuxiliaryMethods.GetMockQuizInputData(); int expected = 2; // act List <IEnumerable <string> > result = _builder.SeparateQuizzes(testObject).ToList(); // assert Assert.AreEqual(expected, result.Count); }
public void QuizConstructor_ShouldProduceCorrectQuestionIds() { // arrange int expected = 10; var mockData = TestAuxiliaryMethods.GetMockQuizInputData(); mockData.Add("10) A direct vent water heater is constructed and installed so that all air for combustion is derived directly from the outside atmosphere and all flue gases are discharged directly to the outside atmosphere."); mockData.Add("True*"); mockData.Add("False"); mockData.Add(""); // act Quiz mockQuiz = new Quiz(mockData, "10"); // asssert Assert.AreEqual(expected, mockQuiz.Questions[2].QuestionId); }