public void CaesarShiftDecryptTest() { string plainText = "AbCDEFGHIJKLMNOPQRSTUVWXYZ'1"; string cypherText = CaesarShift.Encrypt(plainText); Assert.AreEqual(plainText, CaesarShift.Decrypt(cypherText)); }
public void CaesarShiftEncryptTest() { string plainText = "AbCDEFGHIJKLMNOPQRSTUVWXYZ'1"; string cypherText = CaesarShift.Encrypt(plainText); Assert.AreEqual("DeFGHIJKLMNOPQRSTUVWXYZABC'4", cypherText); }
public void CaesarShiftEncryptShiftIsNegativeTest() { string plainText = "AbCDEFGHIJKLMNOPQRSTUVWXYZ'1"; string cypherText = CaesarShift.Encrypt(plainText, -1); Assert.AreEqual("ZaBCDEFGHIJKLMNOPQRSTUVWXY'0", cypherText); }
public void CaesarShiftDecryptShiftIs0Test() { string plainText = "AbCDEFGHIJKLMNOPQRSTUVWXYZ'1"; CaesarShift.Decrypt(plainText, 0); }
public void CaesarShiftDecryptDataIsNullTest() { CaesarShift.Decrypt(null, 5); }