public void CanEncryptNull() { var encryptedString = new TestEncryptedString { PlainTextValue = null }; Assert.IsNull(encryptedString.EncryptedValue); }
public void CanDecryptEmpty() { var encryptedString = new TestEncryptedString { EncryptedValue = string.Empty }; Assert.AreEqual("", encryptedString.PlainTextValue); }
public void CanEncryptEmpty() { var encryptedString = new TestEncryptedString { PlainTextValue = string.Empty }; Assert.AreEqual("029b3a7f7ef02ccbe13edbb3a23015f8", encryptedString.EncryptedValue); }
public void CanEncrypt() { var encryptedString = new TestEncryptedString { PlainTextValue = "blah" }; Assert.AreEqual("6a713b04fe15c0c7c05bb97bf2a5951e", encryptedString.EncryptedValue); }