Exemplo n.º 1
0
        public void Encrypt_StringUsingRot_ReturnEncryptedString()
        {
            iEncrypt = new Rot();

            string stringToEncrypt = "Good Bye";
            string expected        = "Tbbq Olr";
            string actual          = iEncrypt.PerformEncryption(stringToEncrypt);

            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 2
0
        public void Encrypt_StringUsingRot_ReturnEncryptedString()
        {
            iEncrypt = new Rot();

            string stringToEncrypt = "Good Bye";
            string expected = "Tbbq Olr";
            string actual = iEncrypt.PerformEncryption(stringToEncrypt);

            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 3
0
        public void Encrypt_StringUsingReverse_ReturnEncryptedString()
        {
            iEncrypt = new Reverse();

            string stringToEncrypt = "Hello";
            string expected        = "olleH";
            string actual          = iEncrypt.PerformEncryption(stringToEncrypt);

            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 4
0
        public void Encrypt_StringUsingReverse_ReturnEncryptedString()
        {
            iEncrypt = new Reverse();

            string stringToEncrypt = "Hello";
            string expected = "olleH";
            string actual = iEncrypt.PerformEncryption(stringToEncrypt);

            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 5
0
 private void btnEncrypt_Click(object sender, EventArgs e)
 {
     if (rbReverse.Checked)
     {
         iEncrypt = new Reverse();
     }
     else
     {
         iEncrypt = new Rot();
     }
     txtOutput.Text = iEncrypt.PerformEncryption(txtInput.Text);
 }