Avro.Test.TestSchema2.checkDefault C# (CSharp) Method

checkDefault() private static method

private static checkDefault ( String schemaJson, String defaultJson, Object defaultValue ) : void
schemaJson String
defaultJson String
defaultValue Object
return void
        private static void checkDefault(String schemaJson, String defaultJson,
                                         Object defaultValue)
        {
            //throw new NotImplementedException();
            String recordJson =
              "{\"type\":\"record\", \"name\":\"Foo\", \"fields\":[{\"name\":\"f\", "
            + "\"type\":" + schemaJson + ", "
            + "\"default\":" + defaultJson + "}]}";
            Schema expected = Schema.Parse(recordJson);
            DatumReader input = new DatumReader(ACTUAL, expected);
            
            
            //Record record = (GenericData.Record)
            //  input.Read(null, BinaryDecoder.CreateBinaryDecoder(
            //      new byte[0], null));
            //Assert.AreEqual(defaultValue, record.get("f"), "Wrong default.");
            //Assert.AreEqual(expected, Schema.Parse(expected.ToString()), "Wrong toString");
        }