Beispiel #1
0
        public void TestLzma2Decompress1Byte()
        {
            byte[]       properties     = new byte[] { 0x01 };
            byte[]       compressedData = new byte[] { 0x01, 0x00, 0x00, 0x58, 0x00 };
            MemoryStream lzma2Stream    = new MemoryStream(compressedData);

            LzmaStream decompressor = new LzmaStream(properties, lzma2Stream, 5, 1);

            Assert.AreEqual('X', decompressor.ReadByte());
        }
Beispiel #2
0
        public void TestLzma2Decompress1Byte()
        {
            var properties     = new byte[] { 0x01 };
            var compressedData = new byte[] { 0x01, 0x00, 0x00, 0x58, 0x00 };
            var lzma2Stream    = new MemoryStream(compressedData);

            var decompressor = new LzmaStream(properties, lzma2Stream, 5, 1);

            Assert.Equal('X', decompressor.ReadByte());
        }