Inheritance: GraphQL.Types.Schema
        public void throw_error_on_missing_istypeof()
        {
            var schema = new InvalidUnionSchema();

            //note: The exception occurs during Schema.CreateTypesLookup(), not during Schema.FindType()
            Should.Throw <InvalidOperationException>(() => schema.FindType("a"));
        }
Beispiel #2
0
 public void throw_error_on_missing_istypeof()
 {
     var schema = new InvalidUnionSchema();
     Expect.Throws<ExecutionError>(() => schema.FindType("a"));
 }
        public void throw_error_on_missing_istypeof()
        {
            var schema = new InvalidUnionSchema();

            Should.Throw <ExecutionError>(() => schema.FindType("a"));
        }
        public void throw_error_on_missing_istypeof()
        {
            var schema = new InvalidUnionSchema();

            Should.Throw <InvalidOperationException>(() => schema.AllTypes["a"]);
        }
Beispiel #5
0
        public void throw_error_on_missing_istypeof()
        {
            var schema = new InvalidUnionSchema();

            Expect.Throws <ExecutionError>(() => schema.EnsureLookup());
        }