public void TestRoundTripeEmpty() { const string TestString = ""; CertificateHelper.InvokeWithDummyCert( (fingerprint) => { var encrypted = DataTransform.Encrypt(fingerprint, TestString); var decrypted = DataTransform.Decrypt(encrypted); Assert.AreEqual(decrypted, TestString); }); }
public void TestRoundTrip2() { const string TestString = "asdfasdfas;dlffkjpowQYB93YRY7982UO1HQW AHAUI FACPWUH F CAHGUIWEA RY93QRCHWEFCS;DHFVOAWGOSE7R HAE"; CertificateHelper.InvokeWithDummyCert( (fingerprint) => { var encrypted = DataTransform.Encrypt(fingerprint, TestString); var decrypted = DataTransform.Decrypt(encrypted); Assert.AreEqual(decrypted, TestString); }); }