public void GetQuestionListResultTest() { var controller = new QuestionProcessor(); // Act var result = controller.GetQuestionList(SourceFile()); // Arrange Assert.IsType <List <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); } }