Esempio n. 1
0
 public void XpathExistsTrueForXpathThatExists()
 {
     XPath xpath = new XPath(EXISTENT_XPATH);
     Assert.AreEqual(true,
                            xpath.XPathExists(SIMPLE_XML));
 }
Esempio n. 2
0
 public static void XPathExists(string anXPathExpression, XmlInput inXml)
 {
     XPath xpath = new XPath(anXPathExpression);
     Assert.AreEqual(true, xpath.XPathExists(inXml));
 }
Esempio n. 3
0
 public void XpathExistsFalseForUnmatchedExpression()
 {
     XPath xpath = new XPath(NONEXISTENT_XPATH);
     Assert.AreEqual(false,
                            xpath.XPathExists(SIMPLE_XML));
 }