Example #1
0
        public void CompressAndDecompressString(string str)
        {
            var input = Encoding.UTF8.GetBytes(str);

            var compressed = Snappy.CompressToArray(input);
            var output     = Snappy.DecompressToArray(compressed);

            Assert.Equal(input.Length, output.Length);
            Assert.Equal(input, output);
        }