public void CaesarCipher_encodes_hello_world_with_4_shift() { var result = caesarCipher.Encode("Hello, World!", 4); Assert.AreEqual("Lipps, Asvph!", result); }
static void Main(String[] args) { int n = Convert.ToInt32(Console.ReadLine()); string s = Console.ReadLine(); int k = Convert.ToInt32(Console.ReadLine()); CaesarCipher caesar = new CaesarCipher(k); string decodedStr = caesar.Encode(s); Console.WriteLine(decodedStr); Console.ReadLine(); }