示例#1
0
 public void BEncodeTest()
 {
     object target = Kfd_Tools_CCryptoAccessor.CreatePrivate();
     var accessor = new Kfd_Tools_CCryptoAccessor(target);
     const string cIn = "¨1õ";
     byte[] expected = {63, 64, 65};
     byte[] actual = accessor.BEncode(cIn);
     CollectionAssert.AreEqual(expected, actual, "Kfd.Tools.CCrypto.BEncode did not return the expected value.");
 }
示例#2
0
 public void EncodeTest()
 {
     object target = Kfd_Tools_CCryptoAccessor.CreatePrivate();
     var accessor = new Kfd_Tools_CCryptoAccessor(target);
     const string cIn = "õÝá";
     const string expected = "ABC";
     string actual = accessor.Encode(cIn);
     Assert.AreEqual(expected, actual, "Kfd.Tools.CCrypto.Encode did not return the expected value.");
 }
示例#3
0
 public void BDecodeTest()
 {
     object target = Kfd_Tools_CCryptoAccessor.CreatePrivate();
     var accessor = new Kfd_Tools_CCryptoAccessor(target);
     byte[] sIn = {63, 64, 65};
     const string expected = "¨1õ";
     string actual = accessor.BDecode(sIn);
     Assert.AreEqual(expected, actual, "Kfd.Tools.CCrypto.BDecode did not return the expected value.");
 }