Example #1
0
        public void TestJsonSchema()
        {
            var schema = new JsonSchema();
            TestJsonSchemaCommon(schema);

            // Json should not accept plain literal
            Assert.AreEqual(null, schema.GetDefaultTag(new Scalar(null, null, "boom", ScalarStyle.Plain, true, false)));
        }
Example #2
0
        public void TestJsonSchema()
        {
            var schema = new JsonSchema();

            TestJsonSchemaCommon(schema);

            // Json should not accept plain literal
            Assert.Equal(null, schema.GetDefaultTag(new Scalar(null, null, "boom", ScalarStyle.Plain, true, false)));
        }