public void Unigraph_PortaTest() { Porta porta = new Porta(Utility.KeyedEnglishAlphabet("KRYPTOS")); porta.Key = "KRYPTOS"; cipher = ""; clear = ""; generated = ""; for (int i = 0; i < 25; i++) { generated = porta.GenerateRandomString(); cipher = porta.Encrypt(generated); clear = porta.Decrypt(cipher); Assert.AreEqual(generated, clear); } }