APISampleUnitTestsCS.Parsing.TextParseTreeRoundtrip C# (CSharp) Method

TextParseTreeRoundtrip() private method

private TextParseTreeRoundtrip ( ) : void
return void
        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());
        }