public void EncodeTestMixed() { string text = "ZYX123cbaщЩщ"; string expected = "ABC123xyzжЖж"; ICipher cipher = new Atbash(); string actual = cipher.Encode(text); Assert.AreEqual(expected, actual); }
public string Encodes_words_using_atbash_cipher(string words) { return(Atbash.Encode(words)); }
public void Encodes_words_using_atbash_cipher(string words, string expected) { Assert.Equal(expected, Atbash.Encode(words)); }