Exemplo 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);
        }
Exemplo n.º 2
0
 public string Encodes_words_using_atbash_cipher(string words)
 {
     return(Atbash.Encode(words));
 }
Exemplo n.º 3
0
 public void Encodes_words_using_atbash_cipher(string words, string expected)
 {
     Assert.Equal(expected, Atbash.Encode(words));
 }