Example #1
0
        public void GetSchemaAsString_ValidStream_SchemaIsReturned()
        {
            //Arrange

            //Act
            string schema = AvroConvert.GetSchema(new MemoryStream(_avroBytes));

            //Assert
            Assert.Equal(_example2schema, schema);
        }
Example #2
0
        public void GetSchemaAsString_ValidFile_SchemaIsReturned()
        {
            //Arrange

            //Act
            string schema = AvroConvert.GetSchema("example.avro");

            //Assert
            Assert.NotNull(schema);
        }
Example #3
0
        internal string FromAvroObject(byte[] avroData)
        {
            string schema = AvroConvert.GetSchema(avroData);

            return(FromAvroSchema(schema));
        }