public void TestSerialize()
        {
            long length = long.MaxValue;
            MultiStreamHeaderItem item = new MultiStreamHeaderItem
            {
                Length = length
            };

            byte[] buffer = item.Serialize();

            Assert.AreEqual(length, BitConverter.ToInt64(buffer, 0));
        }
        public void TestCanDeserializeSerializedItem()
        {
            long length = long.MaxValue;
            MultiStreamHeaderItem item = new MultiStreamHeaderItem
            {
                Length = length
            };

            byte[] buffer = item.Serialize();
            MultiStreamHeaderItem newItem = new MultiStreamHeaderItem();

            newItem.Deserialize(buffer);

            Assert.AreEqual(length, newItem.Length);
        }