public void TestStringToStringDecryption() { _encryption = new StringEncryption(new AesCryptoServiceProvider()); string encrypted = _encryption.EncryptStringToString(_password, _key); string unencrypted = _encryption.DecryptStringFromString(encrypted, _key); Assert.AreNotEqual(encrypted, _password); Assert.AreNotEqual(encrypted, unencrypted); Assert.AreEqual(unencrypted, _password); }