public void Add_StringEncryptDecrypt_ReturnsString() { string testString = "abcdefghijklmnopqrstuvwxyz0123456789"; Cryptographie Cryptographie = new Cryptographie(); string encryString = Cryptographie.EncryptMessage(testString); string result = Cryptographie.DecryptMessage(encryString); Assert.Equal(testString, result); }
public void Add_StringSpecialSignsEncryptDecrypt_ReturnsString() { string testString = "abcdefghijklmnopqrstuvwxyz0123456789!§$%&/()=?}][{#+*-_.:;,<>|"; Cryptographie Cryptographie = new Cryptographie(); string encryString = Cryptographie.EncryptMessage(testString); string result = Cryptographie.DecryptMessage(encryString); Assert.Equal(testString, result); }