public void TestByteArrayContent() { var serializer = this.CreateTarget <byte[]>(this.GetSerializationContext()); using (var stream = new MemoryStream()) { serializer.Pack(stream, new byte[] { 1, 2, 3, 4 }); stream.Position = 0; Assert.That(Unpacking.UnpackBinary(stream).ToArray(), Is.EqualTo(new byte[] { 1, 2, 3, 4 })); } }