Beispiel #1
0
        public void TestSimpleShift()
        {
            string text = "беёю";
            int    step = 1;

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