Example #1
0
 public string Decompress(string data)
 {
     if (Compression)
     {
         return(LZString.DecompressFromUTF16(data));
     }
     return(data);
 }
        public void CompatibilityDecompressUTF16FromNode(LZStringTestCase test)
        {
            var compress   = RunNodeLzString("compressToUTF16", test.Uncompressed);
            var uncompress = LZString.DecompressFromUTF16(compress);

            Console.WriteLine("lz-string compression result:");
            Console.WriteLine(compress);
            Assert.That(uncompress, Is.EqualTo(test.Uncompressed));
        }
 public void DecompressFromUTF16(LZStringTestCase test)
 {
     Assert.That(LZString.DecompressFromUTF16(test.CompressedUTF16), Is.EqualTo(test.Uncompressed));
 }