コード例 #1
0
        public void CompatibilityCompressEncodedURIComponentFromCSharp(LZStringTestCase test)
        {
            var compress   = LZString.CompressToEncodedURIComponent(test.Uncompressed);
            var uncompress = RunNodeLzString("decompressFromEncodedURIComponent", compress);

            Console.WriteLine("c# compression result:");
            Console.WriteLine(compress);
            Assert.That(uncompress, Is.EqualTo(test.Uncompressed));
        }
コード例 #2
0
 public void CompressToEncodedURIComponent(LZStringTestCase test)
 {
     Assert.That(LZString.CompressToEncodedURIComponent(test.Uncompressed), Is.EqualTo(test.CompressedEncodedURIComponent));
 }