public void Encrypt_EmptyString() { string unencodedString = ""; int offset = 2; string expectedEncodedString = ""; string actualEncodedString; CipherEncoder encoder = new CipherEncoder(); actualEncodedString = encoder.Encrypt(unencodedString, offset); Assert.AreEqual(expectedEncodedString, actualEncodedString, "Encoded strings are not equal"); }
public void Encrypt_LargeOffset() { string unencodedString = "abcdefghijklmnopQRSTUVwxyz123456!@#$%^"; int offset = 2602; string expectedEncodedString = "cdefghijklmnopqrSTUVWXyzab123456!@#$%^"; string actualEncodedString; CipherEncoder encoder = new CipherEncoder(); actualEncodedString = encoder.Encrypt(unencodedString, offset); Assert.AreEqual(expectedEncodedString, actualEncodedString, "Encoded strings are not equal"); }