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