public void should_serialize_empty_messages_like_1_5_0() { var oldTransportMessage = new TransportMessage_1_5_0 { Id = new MessageId(Guid.NewGuid()), Originator = new OriginatorInfo_1_5_0(), Content = new byte[0], }; var oldOutput = new MemoryStream(); ProtoBuf.Serializer.Serialize(oldOutput, oldTransportMessage); var newTransportMessage = new TransportMessage() { Id = oldTransportMessage.Id, Originator = new OriginatorInfo(), Content = new MemoryStream(), }; var bufferWriter = new ProtoBufferWriter(); bufferWriter.WriteTransportMessage(newTransportMessage); bufferWriter.ToArray().SequenceEqual(oldOutput.ToArray()).ShouldBeTrue(); }