示例#1
0
 public void TestCaesar64DecodeIRCUKRA()
 {
     string testo = "hUIBhQ//";
     string codice = "D";
     string expected = "ABBA";
     Caesar64 crypt = new Caesar64();
     string codifica = crypt.Decode(testo, codice);
     Assert.AreEqual(expected, codifica);
 }
 public void TestCaesar64DecodeNumber()
 {
     string text = "hUIBhQ//";
     int cypher = 3;
     string ris = "ABBA";
     Caesar64 crypt = new Caesar64();
     string decoder = crypt.Decode(text, cypher);
     Assert.AreEqual(decoder, ris);
 }
示例#3
0
 public void TestCaesar64DecodeError()
 {
     string text = "IRCAKRA=";
     string cypher = "D";
     string ris = "ABBA";
     Caesar64 crypt = new Caesar64();
     string decode = crypt.Decode(text, cypher);
     Assert.AreEqual(decode, ris);
 }
示例#4
0
 public void TestCaesar64DecodeOk()
 {
     string text = "hUIBhQ//";
     string cypher = "D";
     string ris = "ABBA";
     Caesar64 crypt = new Caesar64();
     string decode = crypt.Decode(text, cypher);
     Assert.AreEqual(decode, ris);
 }