public void TestComputedQuestion(string input, int exprectedErrorCount, string failureMessage) { var result = new Result(); var SemanticAnalyzer = new ExposedSemanticAnalyzer(result); var node = ASTFactory.BuildComputedQuestion(input); SemanticAnalyzer.AnalyzeAstNode(node); Assert.AreEqual(exprectedErrorCount, result.Events.Count, failureMessage); }