Пример #1
0
        public void converts_string_to_string_value()
        {
            var result = new StringGraphType().ToAST("test");

            result.ShouldNotBeNull();
            result.ShouldBeOfType <StringValue>().Value.ShouldBe("test");
        }
Пример #2
0
        public void converts_null_to_null()
        {
            object value  = null;
            var    result = new StringGraphType().ToAST(value);

            result.ShouldBeOfType <NullValue>();
        }