Esempio n. 1
0
        public void EncodeTestMixed()
        {
            string text     = "ZYX123cbaщЩщ";
            string expected = "ABC123xyzжЖж";

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

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