Example #1
0
 public void PrintsMinimalAst()
 {
     var ast = new ScalarDefinition
     {
         Name = new Name {Value = "foo"},
     };
     var schemaPrinter = new SchemaPrinter();
     schemaPrinter.Visit(ast).Should().Be("scalar foo");
 }
Example #2
0
        public void PrintsMinimalAst()
        {
            var ast = new ScalarDefinition
            {
                Name = new Name {
                    Value = "foo"
                },
            };
            var schemaPrinter = new SchemaPrinter();

            schemaPrinter.Visit(ast).Should().Be("scalar foo");
        }