private static void AssertParse(string input, string expected) { var parser = new SimpleExpressionParser(); var ast = parser.Parse(input); var sut = new ExpressionFormatter(); ast.Accept(sut); Assert.Equal(expected, sut.GetResult()); }