Exemple #1
0
        public void DecompressionTest()
        {
            Byte[] CompressedData = TestData.CompressedData;
            var    reader         = new XlBinaryReader(ref CompressedData);

            reader.OutputAllAsBinary();

            var container = new CompressedContainer(reader);
            var buffer    = new DecompressedBuffer();

            container.Decompress(buffer);
            Byte[] uncompressed = buffer.GetData();

            bool success = Enumerable.SequenceEqual(uncompressed, TestData.UncompressedData);

            Assert.IsTrue(success, "Uncompressed byte sequence not equal to expected byte sequence");
        }