public void LoadInnerXml_XmlNoExcept()
        {
            XmlDocument doc = new XmlDocument();

            doc.LoadXml("<a />");

            Assert.Throws <CryptographicException>(() => transform.LoadInnerXml(doc.ChildNodes));

            Assert.Null(transform.UnprotectedGetInnerXml());
        }
Пример #2
0
        public void LoadInnerXml_XmlNoExcept()
        {
            XmlDocument doc = new XmlDocument();

            doc.LoadXml("<a />");

            transform.LoadInnerXml(doc.ChildNodes);

            Assert.Null(transform.UnprotectedGetInnerXml());
        }