示例#1
0
        public void EncodeTestMixed()
        {
            string text     = "ZYX123cbaщЩщ";
            string expected = "ABC123xyzжЖж";

            ICipher cipher = new Atbash();
            string  actual = cipher.Encode(text);

            Assert.AreEqual(expected, actual);
        }
示例#2
0
 public string Encodes_words_using_atbash_cipher(string words)
 {
     return(Atbash.Encode(words));
 }
示例#3
0
 public void Encodes_words_using_atbash_cipher(string words, string expected)
 {
     Assert.Equal(expected, Atbash.Encode(words));
 }