Exemplo n.º 1
0
        public void TestSimpleShift()
        {
            string text = "беёю";
            int    step = 1;

            CommonTestMethods.TestShift(crypterRus.Encrypt, text, step, "вёжя");
            CommonTestMethods.TestShift(crypterRus.Decrypt, text, step, "адеэ");
        }
Exemplo n.º 2
0
        public void TestSimpleShift()
        {
            string text = "bcde";
            int    step = 1;

            CommonTestMethods.TestShift(crypterEng.Encrypt, text, step, "cdef");
            CommonTestMethods.TestShift(crypterEng.Decrypt, text, step, "abcd");
        }
Exemplo n.º 3
0
        public void TestSimpleShift()
        {
            string text = "123";
            int    step = 1;

            CommonTestMethods.TestShift(crypterDig.Encrypt, text, step, "234");
            CommonTestMethods.TestShift(crypterDig.Decrypt, text, step, "012");
        }
Exemplo n.º 4
0
        public void TestRusEngDig()
        {
            CaesarCrypter crypter         = new CaesarCrypter(new Alphabet(Languages.Russian), new Alphabet(Languages.English), new Alphabet(Languages.Digits));
            string        expectedEncrypt = "вгд234cde" + punctuation;
            string        expectedDecrypt = "абв012abc" + punctuation;

            CommonTestMethods.TestShift(crypter.Encrypt, mixedText, step, expectedEncrypt);
            CommonTestMethods.TestShift(crypter.Decrypt, mixedText, step, expectedDecrypt);
        }
Exemplo n.º 5
0
 public void TestUpperCase()
 {
     CommonTestMethods.TestFullAlphabet(crypterRus.Encrypt, crypterRus.Decrypt, "АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ");
 }
Exemplo n.º 6
0
 public void TestFullAlphabet()
 {
     CommonTestMethods.TestFullAlphabet(crypterRus.Encrypt, crypterRus.Decrypt, "абвгдеёжзийклмнопрстуфхцчшщъыьэюя");
 }
Exemplo n.º 7
0
 public void TestDifferentShift()
 {
     CommonTestMethods.TestDifferentShift(crypterRus.Encrypt, crypterRus.Decrypt, "абвгдеёжзийклмнопрстуфхцчшщъыьэюя");
 }
Exemplo n.º 8
0
 public void TestUpperCase()
 {
     CommonTestMethods.TestFullAlphabet(crypterEng.Encrypt, crypterEng.Decrypt, "ABCDEFGHIJKLMNOPQRSTUVWXYZ");
 }
Exemplo n.º 9
0
 public void TestFullAlphabet()
 {
     CommonTestMethods.TestFullAlphabet(crypterEng.Encrypt, crypterEng.Decrypt, "abcdefghijklmnopqrstuvwxyz");
 }
Exemplo n.º 10
0
 public void TestDifferentShift()
 {
     CommonTestMethods.TestDifferentShift(crypterEng.Encrypt, crypterEng.Decrypt, "abcdefghijklmnopqrstuvwxyz");
 }
Exemplo n.º 11
0
 public void TestFullAlphabet()
 {
     CommonTestMethods.TestFullAlphabet(crypterDig.Encrypt, crypterDig.Decrypt, "0123456789");
 }
Exemplo n.º 12
0
 public void TestDifferentShift()
 {
     CommonTestMethods.TestDifferentShift(crypterDig.Encrypt, crypterDig.Decrypt, "0123456789");
 }