public void GetQuestionResultTest() { var controller = new QuestionProcessor(); // Act var result = controller.GetQuestion(SourceFile().SourceText); // Arrange Assert.IsType <TestQuestion >(result); Assert.NotNull(result); }
public void GetQuestionResultMissingVariantTest() { var controller = new QuestionProcessor(); int variantCount = 0; // Act var result = controller.GetQuestionList(SourceFile()); foreach (var res in result) { variantCount = res.AnswerList.Count; // Arrange Assert.Equal(5, variantCount); } }
public void StartingQuestionIdFormComplete(string questionId, string panelId) { // Id format has been passed back. Continue to send to Library switch (ProcessingAction) { case ProcessingType.QuestionCreation: outputTextBox.Text = QuestionProcessor.ValidateAndProcessQuestions(questionId, inputTextBox.Text); break; case ProcessingType.PanelCreation: outputTextBox.Text = QuestionProcessor.ValidateAndProcessPanels(questionId, panelId, inputTextBox.Text); break; default: break; } }