Esempio n. 1
0
        public void NullDecryptor_ReturnsOriginalElement()
        {
            // Arrange
            var decryptor = new NullXmlDecryptor();

            // Act
            var retVal = decryptor.Decrypt(XElement.Parse("<unencryptedKey><theElement /></unencryptedKey>"));

            // Assert
            XmlAssert.Equal("<theElement />", retVal);
        }
        public void NullDecryptor_ReturnsOriginalElement()
        {
            // Arrange
            var decryptor = new NullXmlDecryptor();

            // Act
            var retVal = decryptor.Decrypt(XElement.Parse("<unencryptedKey><theElement /></unencryptedKey>"));

            // Assert
            XmlAssert.Equal("<theElement />", retVal);
        }