public void TestMethod_RsaDecryption_encryption_not_null() { const string source = "N06oeaZWoEgD3ktg8lvw2ncecdqE9grb+NRV/QoYpp4VRjQeGiDZYPwFbd4VwhqmAk+7uYeGHc2yd/LCz7j9oN7Z1X6MKxYmiGc7FiL2fobKXcHb1yNpTXgy5jNok6Y02dtJJaUn5GmNMDvk1fYxGgyvCqScxalF16Nl1vAWO7I="; string result = CryptoFunc.RsaDecryption(source); Assert.IsNotNull(result); }
public void TestMethod_RsaDecryption_source_is_a_the_same_after_encryption_and_decryption() { const string source = "A long long time ago in a galaxy far far away"; string result = CryptoFunc.RsaDecryption(CryptoFunc.RsaEncryption(source)); Assert.AreEqual(result, source); }