public void ConvertsItselfToXml() { IXML doc = new XMLCursor("<hello><a/></hello>"); Assert.Single( new XMLCursor(doc.ToString()).Nodes("/hello/a") ); }
public void PrintsWithAndWithoutXmlHeader() { IXML doc = new XMLCursor("<hey/>"); Assert.Contains( "<?xml", doc.ToString()); Assert.StartsWith( "<hey", doc.Nodes("/*")[0].ToString()); }