public void ReadWithCustomConverterOnProperty() { const string hexBuffer = "A16447756964505DF4EB676C01484B8AE61E389127B717"; ObjectWithCustomConverterOnProperty obj = Helper.Read <ObjectWithCustomConverterOnProperty>(hexBuffer); Assert.NotNull(obj); Assert.Equal(Guid.Parse("67EBF45D-016C-4B48-8AE6-1E389127B717"), obj.Guid); }
public void WriteWithCustomConverterOnProperty() { const string hexBuffer = "A16447756964505DF4EB676C01484B8AE61E389127B717"; ObjectWithCustomConverterOnProperty obj = new ObjectWithCustomConverterOnProperty { Guid = Guid.Parse("67EBF45D-016C-4B48-8AE6-1E389127B717") }; Helper.TestWrite(obj, hexBuffer); }