コード例 #1
0
        public void Test_InjectElementWithTexts_ErrorPath()
        {
            Exception withAttributes =
                XmlOperator.InjectElementWithTexts("", _rootXPath, _targetXPath, _injectElement, _attributes);

            Assert.NotNull(withAttributes);
            TLogException(withAttributes);
        }
コード例 #2
0
        public void Test_InjectElementWithTexts()
        {
            Exception withAttributes =
                XmlOperator.InjectElementWithTexts(_defaultXML, _rootXPath, _targetXPath, _injectElement,
                                                   _attributes);

            if (withAttributes != null)
            {
                TLogException(withAttributes);
            }

            Assert.Null(withAttributes);
        }