public void TestBytes() { string input = "eyup!"; byte[] inputBytes = Encoding.UTF8.GetBytes(input); byte[] compressedData = CompressionUtils.Gzip(inputBytes); byte[] uncompressedData = CompressionUtils.UnGZipToBytes(compressedData); Assert.IsTrue(inputBytes.SequenceEqual(uncompressedData)); }