Exemple #1
0
            public void Should_indicate_that_segment_not_point_to_gzip_header()
            {
                var bytes = TestData.ShortFileContent.GzipCompress().Slice(2);

                var result = GzipHeader.IsPrefixFor(bytes);

                result.Should().BeFalse();
            }
Exemple #2
0
            public void Should_indicate_that_bytes_is_started_with_gzip_header()
            {
                var bytes = TestData.ShortFileContent.GzipCompress();

                var result = GzipHeader.IsPrefixFor(bytes);

                result.Should().BeTrue();
            }
Exemple #3
0
            public void Should_indicate_that_bytes_not_starts_with_header()
            {
                var bytes = TestData.ShortFileContent.ToArraySegment();

                var result = GzipHeader.IsPrefixFor(bytes);

                result.Should().BeFalse();
            }