protected void Check(BaseSyntax node, string expected) { string nows(string s) => NoWhitespaceRegex.Replace(s, string.Empty); var nodeToApex = node.ToApex(); Assert.AreEqual(nows(expected), nows(nodeToApex)); CompareLineByLine(nodeToApex, ApexSharpParser.IndentApex(expected)); }
protected void Check(BaseSyntax node, string expected) => CompareLineByLine(node.ToApex(), expected);