示例#1
0
        public void TestToStringStackWalker()
        {
            var source  = new Source("{\n  node(id: 4) {\n    id,\n    name\n  }\n}\n");
            var result  = Parser.Parse(source);
            var visitor = new ToStringStackWalker(_output);
            var visited = visitor.Visit(result);

            result.Should().Be(visited);
        }
示例#2
0
 public void TestToStringStackWalker()
 {
     var source = new Source("{\n  node(id: 4) {\n    id,\n    name\n  }\n}\n");
     var result = Parser.Parse(source);
     var visitor = new ToStringStackWalker(_output);
     var visited = visitor.Visit(result);
     result.Should().Be(visited);
 }