public void EncryptTest() { string password = "******"; string encryptedPassword = PasswordHash.Encrypt(password); string expected = PasswordHash.Decrypt(encryptedPassword); Assert.AreEqual(expected, password); Assert.AreNotEqual(password, encryptedPassword); }
public void DecryptTest() { string password = "******"; string encryptedPassword = PasswordHash.Encrypt(password); string expected = PasswordHash.Decrypt(encryptedPassword); Assert.AreNotEqual(password, encryptedPassword); Assert.AreEqual(expected, password); }