Files

20 lines
584 B
C#
Raw Permalink Normal View History

2015-12-30 11:19:42 +00:00
using System.IO;
2016-09-26 11:51:35 +01:00
using SharpCompress.Compressors.LZMA;
2015-12-30 11:19:42 +00:00
using Xunit;
namespace SharpCompress.Test.Streams
{
public class StreamTests
{
[Fact]
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.Equal('X', decompressor.ReadByte());
}
}
2013-04-08 12:17:16 +01:00
}