Esempio n. 1
0
        public void QueryDocument_ToSource()
        {
            // arrange
            DocumentNode document = Utf8GraphQLParser.Parse("{ a }");

            // act
            var query = new QueryDocument(document);

            // assert
            QuerySyntaxSerializer.Serialize(
                Utf8GraphQLParser.Parse(query.AsSpan()))
            .ToString().MatchSnapshot();
        }