public void TextParseTreeRoundtrip() { string text = "class C { void M() { } } // exact text round trip, including comments and whitespace"; SyntaxTree tree = SyntaxTree.ParseText(text); Assert.AreEqual(text, tree.ToString()); }