public void DecodeTest() { string encodedStr = "_3HGHNLNLS0tMTIzNDU2Nzg5MC0tLQ=="; // "_4736YWN0aW9uPWxvZ2luJmxvZ2luPTEyMyZwYXNzd2Q9MzIx"; string decoded = CoderHelper.Decode(encodedStr); Assert.AreEqual("---1234567890---", decoded); }
public void DecodeTest2() { string encoded = "_17ZYWN0aW9uPXBpbmcmY2xpZW50PTEuMC40LjU="; string decoded = CoderHelper.Decode(encoded); Assert.IsTrue(decoded.Length > 0); Assert.IsTrue(decoded.Contains("ping")); }