public void Rot13Encryptor_DecryptionPreservesCaseWithWhiteSpace() { Rot13Encryptor encryptor = new Rot13Encryptor(); String inputText = "gRfG gRfG gRfG"; String expected = "tEsT tEsT tEsT"; String actual = encryptor.Decrypt(inputText); Assert.AreEqual(actual, expected); }
public void Rot13Encryptor_DecryptionWithWhiteSpace() { Rot13Encryptor encryptor = new Rot13Encryptor(); String inputText = "grfg grfg grfg"; String expected = "test test test"; String actual = encryptor.Decrypt(inputText); Assert.AreEqual(actual, expected); }
public void Rot13Encryptor_DecrpytThrowsExceptionWhenPassedNullValue() { Rot13Encryptor encryptor = new Rot13Encryptor(); String inputText = null; encryptor.Decrypt(inputText); }