Example #1
0
        public static void XPathExists(string anXPathExpression, XmlInput inXml)
        {
            XPath xpath = new XPath(anXPathExpression);

            NUnit.Framework.Assert.AreEqual(true, xpath.XPathExists(inXml));
        }
Example #2
0
        public static void AssertXPathExists(string anXPathExpression, XmlInput inXml)
        {
            XPath xpath = new XPath(anXPathExpression);

            AssertEquals(true, xpath.XPathExists(inXml));
        }
Example #3
0
 public static void AssertXPathExists(string anXPathExpression, XmlInput inXml)
 {
     XPath xpath = new XPath(anXPathExpression);
     AssertEquals(true, xpath.XPathExists(inXml));
 }
Example #4
0
 public void XpathExistsTrueForXpathThatExists()
 {
     XPath xpath = new XPath(EXISTENT_XPATH);
     Assertion.AssertEquals(true,
                            xpath.XPathExists(SIMPLE_XML));
 }
Example #5
0
 public void XpathExistsFalseForUnmatchedExpression()
 {
     XPath xpath = new XPath(NONEXISTENT_XPATH);
     Assertion.AssertEquals(false,
                            xpath.XPathExists(SIMPLE_XML));
 }
Example #6
0
 [Test] public void XpathExistsTrueForXpathThatExists() {
     XPath xpath = new XPath(EXISTENT_XPATH);
     Assert.AreEqual(true, 
                            xpath.XPathExists(SIMPLE_XML));
 }
Example #7
0
 public static void XPathExists(String expression, XmlInput xmlInput, String message = "", Object[] args = null)
 {
     XPath xpath = new XPath(expression);
       NUnit.Framework.Assert.AreEqual(true, xpath.XPathExists(xmlInput), message, args);
 }
 public static void AssertXPathExists(string anXPathExpression, XmlInput inXml) {
     XPath xpath = new XPath(anXPathExpression);
     NUnit.Framework.Assert.AreEqual(true, xpath.XPathExists(inXml));
 }