Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        public void Rot13Encryptor_DecrpytThrowsExceptionWhenPassedNullValue()
        {
            Rot13Encryptor encryptor = new Rot13Encryptor();
            String inputText = null;

            encryptor.Decrypt(inputText);
        }