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")); }
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"]); }
public void throw_error_on_missing_istypeof() { var schema = new InvalidUnionSchema(); Expect.Throws <ExecutionError>(() => schema.EnsureLookup()); }