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); }
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); }