Exemplo n.º 1
0
        public void DecodeTestEng()
        {
            string text     = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
            string expected = "ZYXWVUTSRQPONMLKJIHGFEDCBA";

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

            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 2
0
        public void DecodeTestMixed()
        {
            string text     = "ABCxyzжЖж";
            string expected = "ZYXcbaщЩщ";

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

            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 3
0
        public void DecodeTestRus()
        {
            string text     = "ЯЮЭЬЫЪЩШЧЦХФУТСРПОНМЛКЙИЗЖЕДГВБА";
            string expected = "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ";

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

            Assert.AreEqual(expected, actual);
        }