public void Rot13_encryptAString_encryptedString() { ROT13Encryt encryptmachine = new ROT13Encryt(); String plaintext = "Richard Horne"; String expectedtext = "Evpuneq Ubear"; String resulttext = encryptmachine.EncryptDecrypt(plaintext); Assert.AreEqual(expectedtext, resulttext); }
public void Rot13_DecryptAStringAndNumbers_encryptedString() { ROT13Encryt encryptmachine = new ROT13Encryt(); String encyptedText = "Evpuneq 13 Ubear 01"; String expectedtext = "Richard 13 Horne 01"; String resulttext = encryptmachine.EncryptDecrypt(encyptedText); Assert.AreEqual(expectedtext, resulttext); }