public void DeCryptionMessagetTest() { var problems = new SecondProblems(); string messageEncryption = problems.EncryptionMessage("Nicaieri, nu e ca acasa!", 4); string messageDeCryption = problems.DeCryptionMessage(messageEncryption, 4); messageDeCryption = problems.RemoveSpecialCharacters(messageDeCryption); Assert.AreEqual(messageDeCryption, "Nicaierinuecaacasa"); }
public void MessageWithoutSpaceAndSpecialSignTest() { var problems = new SecondProblems(); var messageClean = problems.RemoveSpecialCharacters("Nicaieri!#21 nu. e ca acasa*("); Assert.AreEqual(messageClean, "Nicaieri21nuecaacasa"); }