Beispiel #1
0
        public void FromFullContent_should_get_node_name_same_as_target()
        {
            string h = "xml version=\"1.0\" encoding=\"UTF-8\"";
            HtmlProcessingInstruction pi = HtmlProcessingInstruction.FromFullContent(new HtmlDocument(), h);

            Assert.Equal("xml", pi.NodeName);
        }
Beispiel #2
0
        public void FromFullContent_split_target_and_data_no_data()
        {
            string h = "xmlversion=\"1.0\"encoding=\"UTF-8\"";
            HtmlProcessingInstruction pi = HtmlProcessingInstruction.FromFullContent(new HtmlDocument(), h);

            Assert.Equal("xmlversion=\"1.0\"encoding=\"UTF-8\"", pi.Target);
            Assert.Equal("", pi.Data);
        }