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