Наследование: GraphQL.Types.Schema
Пример #1
0
        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"));
        }
Пример #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"));
        }
Пример #4
0
        public void throw_error_on_missing_istypeof()
        {
            var schema = new InvalidUnionSchema();

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

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