示例#1
0
        public void validate_core_schema()
        {
            var documentExecuter = new DocumentExecuter();
            var executionResult  = documentExecuter.ExecuteAsync(new Schema(), null, SchemaIntrospection.IntrospectionQuery, null).Result;
            var json             = new DocumentWriter(true).Write(executionResult.Data);

            json.ShouldBe(IntrospectionResult.Data);
        }
示例#2
0
        public void validate_non_null_schema()
        {
            var documentExecuter = new DocumentExecuter();
            var executionResult  = documentExecuter.ExecuteAsync(new TestSchema(), null, InputObjectBugQuery, null).Result;
            var json             = new DocumentWriter(true).Write(executionResult.Data);

            executionResult.Errors.ShouldBeNull();

            json.ShouldBe(InputObjectBugResult);
        }