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(); }
public void Should_indicate_that_bytes_is_started_with_gzip_header() { var bytes = TestData.ShortFileContent.GzipCompress(); var result = GzipHeader.IsPrefixFor(bytes); result.Should().BeTrue(); }
public void Should_indicate_that_bytes_not_starts_with_header() { var bytes = TestData.ShortFileContent.ToArraySegment(); var result = GzipHeader.IsPrefixFor(bytes); result.Should().BeFalse(); }