public void CompressedMultiBlockStructureTest()
        {
            var reader = new BizTalkBlockReader(doubleBlock65536XBuffer);

            var b1 = reader.ReadBlock();

            Assert.IsNotNull(b1);
            Assert.IsTrue(b1.Compressed);
            Assert.AreEqual(58, b1.Length);
            Assert.AreEqual(35840, b1.UncompressedLength);

            var b2 = reader.ReadBlock();

            Assert.IsNotNull(b2);
            Assert.IsTrue(b2.Compressed);
            Assert.AreEqual(53, b2.Length);
            Assert.AreEqual(29696, b2.UncompressedLength);

            var b3 = reader.ReadBlock();

            Assert.IsNotNull(b3);
            Assert.IsFalse(b3.Compressed);
            Assert.AreEqual(0, b3.UncompressedLength);
            Assert.IsTrue(b3.IsEmpty);
        }
        public void CompressedSingleBlockStructureTest()
        {
            var reader = new BizTalkBlockReader(singleBlock1024XBuffer);

            var b1 = reader.ReadBlock();

            Assert.IsNotNull(b1);
            Assert.AreEqual(1024, b1.UncompressedLength);

            var b2 = reader.ReadBlock();

            Assert.IsNotNull(b2);
            Assert.AreEqual(0, b2.UncompressedLength);
            Assert.IsTrue(b2.IsEmpty);
        }