public void TestCaesar32DecodeIRCUKRA() { string testo = "QVADDPH7"; string codice = "D"; string expected = "ABBA"; Caesar32 crypt = new Caesar32(); string codifica = crypt.Decode(testo, codice); Assert.AreEqual(expected, codifica); }
public void TestCaesar32DecodeNumber() { string text = "QVADDPH7"; int cypher = 3; string ris = "ABBA"; Caesar32 crypt = new Caesar32(); string decoder = crypt.Decode(text, cypher); Assert.AreEqual(decoder, ris); }
public void TestCaesar32DecodeError() { string text = "IRCAKRA="; string cypher = "D"; string ris = "ABBA"; Caesar32 crypt = new Caesar32(); string decode = crypt.Decode(text, cypher); Assert.AreEqual(decode, ris); }
public void TestCaesar32DecodeOk() { string text = "QVADDPH7"; string cypher = "D"; string ris = "ABBA"; Caesar32 crypt = new Caesar32(); string decode = crypt.Decode(text, cypher); Assert.AreEqual(decode, ris); }