public void ToAST_Test(IGraphType type, object value, IValue expected)
        {
            var actual = AstPrinter.Print(type.ToAST(value));
            var result = AstPrinter.Print(expected);

            actual.ShouldBe(result);
        }
Ejemplo n.º 2
0
    public void ToAST_Test(IGraphType type, object value, GraphQLValue expected)
    {
        var actual = type.ToAST(value).Print();
        var result = expected.Print();

        actual.ShouldBe(result);
    }
 public void ToAST_Exception_Test(IGraphType type, object value, Exception expected)
 {
     Should.Throw(() => type.ToAST(value), expected.GetType()).Message.ShouldBe(expected.Message);
 }