public void GetSchemaAsString_ValidStream_SchemaIsReturned() { //Arrange //Act string schema = AvroConvert.GetSchema(new MemoryStream(_avroBytes)); //Assert Assert.Equal(_example2schema, schema); }
public void GetSchemaAsString_ValidFile_SchemaIsReturned() { //Arrange //Act string schema = AvroConvert.GetSchema("example.avro"); //Assert Assert.NotNull(schema); }
internal string FromAvroObject(byte[] avroData) { string schema = AvroConvert.GetSchema(avroData); return(FromAvroSchema(schema)); }