예제 #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);
        }
예제 #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);
        }
예제 #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);
        }
예제 #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);
        }
예제 #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);
 }