Exemple #1
0
            public void Should_be_able_to_decompress_many_times()
            {
                var gzipBlock = new IndependentGzipBlock(TestData.ShortFileContent.GzipCompress().AsStream());

                var decompress1 = gzipBlock.Decompress();
                var decompress2 = gzipBlock.Decompress();

                decompress1.Should().BeEquivalentTo(decompress2);
            }
Exemple #2
0
            public void Should_decompress_gzipped_block_stream()
            {
                var gzipBlock = new IndependentGzipBlock(TestData.ShortFileContent.GzipCompress().AsStream());

                var decompressed = gzipBlock.Decompress();

                decompressed.AsString().Should().Be(TestData.ShortFileContent);
            }