Exemplo n.º 1
0
        public void CompressionDecompressionTest()
        {
            var compressedResult   = GzipUtils.Compress(InputString);
            var decompressedResult = GzipUtils.Decompress(compressedResult);

            Assert.AreEqual(InputString, decompressedResult);
        }
Exemplo n.º 2
0
        public void IsCompressedTest()
        {
            string longString       = LongString;
            int    longStringLength = longString.Length;

            var result = GzipUtils.Compress(longString);

            int resultLength = result.Length;

            Assert.IsTrue(resultLength < longStringLength);
        }