public void Decrypt_StringUsingRot_ReturnDecryptedString() { iEncrypt = new Rot(); string stringToDecrypt = "Tbbq Olr"; string expected = "Good Bye"; string actual = iEncrypt.PerformDecryption(stringToDecrypt); Assert.AreEqual(expected, actual); }
public void Decrypt_StringUsingRot_ReturnDecryptedString() { iEncrypt = new Rot(); string stringToDecrypt = "Tbbq Olr"; string expected = "Good Bye"; string actual = iEncrypt.PerformDecryption(stringToDecrypt); Assert.AreEqual(expected, actual); }
public void Decrypt_StringUsingReverse_ReturnDecryptedString() { iEncrypt = new Reverse(); string stringToDecrypt = "olleH"; string expected = "Hello"; string actual = iEncrypt.PerformDecryption(stringToDecrypt); Assert.AreEqual(expected, actual); }
public void Decrypt_StringUsingReverse_ReturnDecryptedString() { iEncrypt = new Reverse(); string stringToDecrypt = "olleH"; string expected = "Hello"; string actual = iEncrypt.PerformDecryption(stringToDecrypt); Assert.AreEqual(expected, actual); }
private void btnDecrypt_Click(object sender, EventArgs e) { if (rbReverse.Checked) { iEncrypt = new Reverse(); } else { iEncrypt = new Rot(); } txtOutput.Text = iEncrypt.PerformDecryption(txtInput.Text); }