Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        public void Decrypt_StringUsingReverse_ReturnDecryptedString()
        {
            iEncrypt = new Reverse();

            string stringToDecrypt = "olleH";
            string expected        = "Hello";
            string actual          = iEncrypt.PerformDecryption(stringToDecrypt);

            Assert.AreEqual(expected, actual);
        }
Exemple #4
0
        public void Decrypt_StringUsingReverse_ReturnDecryptedString()
        {
            iEncrypt = new Reverse();

            string stringToDecrypt = "olleH";
            string expected = "Hello";
            string actual = iEncrypt.PerformDecryption(stringToDecrypt);

            Assert.AreEqual(expected, actual);
        }
Exemple #5
0
 private void btnDecrypt_Click(object sender, EventArgs e)
 {
     if (rbReverse.Checked)
     {
         iEncrypt = new Reverse();
     }
     else
     {
         iEncrypt = new Rot();
     }
     txtOutput.Text = iEncrypt.PerformDecryption(txtInput.Text);
 }