Пример #1
0
        public void ProcessElement_CreatesCompositeNode_ForComplexElements()
        {
            XmlElement el = CreateXmlElement("<Customer Name=\"chris\"/>");

            Node node = builder.ProcessElement(el);

            Assert.IsNotNull(node);
            Assert.IsInstanceOfType(typeof(CompositeNode), node);
        }
Пример #2
0
        public void ProcessElement_CreatesCompositeNode_ForComplexElements()
        {
            var el = new XElement("Customer",
                                  new XAttribute("Name", "chris"));

            var node = builder.ProcessElement(el);

            Assert.IsNotNull(node);
            Assert.IsInstanceOfType(typeof(CompositeNode), node);
        }