public void Rot13Encryptor_EncryptionPreservesCaseWithWhiteSpace() { Rot13Encryptor encryptor = new Rot13Encryptor(); String inputText = "tEsT tEsT tEsT"; String expected = "gRfG gRfG gRfG"; String actual = encryptor.Encrypt(inputText); Assert.AreEqual(actual, expected); }
public void Rot13Encryptor_EncryptWithWhiteSpace() { Rot13Encryptor encryptor = new Rot13Encryptor(); String inputText = "test test test"; String expected = "grfg grfg grfg"; String actual = encryptor.Encrypt(inputText); Assert.AreEqual(actual, expected); }
public void Rot13Encryptor_EncrpytThrowsExceptionWhenPassedNullValue() { Rot13Encryptor encryptor = new Rot13Encryptor(); String inputText = null; encryptor.Encrypt(inputText); }