Ejemplo n.º 1
0
        public static void XPathExists(string anXPathExpression, XmlInput inXml)
        {
            XPath xpath = new XPath(anXPathExpression);

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

            AssertEquals(true, xpath.XPathExists(inXml));
        }
Ejemplo n.º 3
0
 public static void AssertXPathExists(string anXPathExpression, XmlInput inXml)
 {
     XPath xpath = new XPath(anXPathExpression);
     AssertEquals(true, xpath.XPathExists(inXml));
 }
Ejemplo n.º 4
0
 public void XpathExistsTrueForXpathThatExists()
 {
     XPath xpath = new XPath(EXISTENT_XPATH);
     Assertion.AssertEquals(true,
                            xpath.XPathExists(SIMPLE_XML));
 }
Ejemplo n.º 5
0
 public void XpathExistsFalseForUnmatchedExpression()
 {
     XPath xpath = new XPath(NONEXISTENT_XPATH);
     Assertion.AssertEquals(false,
                            xpath.XPathExists(SIMPLE_XML));
 }
Ejemplo n.º 6
0
 [Test] public void XpathExistsTrueForXpathThatExists() {
     XPath xpath = new XPath(EXISTENT_XPATH);
     Assert.AreEqual(true, 
                            xpath.XPathExists(SIMPLE_XML));
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 8
0
 public static void AssertXPathExists(string anXPathExpression, XmlInput inXml) {
     XPath xpath = new XPath(anXPathExpression);
     NUnit.Framework.Assert.AreEqual(true, xpath.XPathExists(inXml));
 }