public void XpathEvaluatesToTextValueForSimpleString() { string expectedValue = "one two"; XPath xpath = new XPath(EXISTENT_XPATH); Assertion.AssertEquals(expectedValue, xpath.EvaluateXPath(SIMPLE_XML)); }
public static void XPathEvaluatesTo(string anXPathExpression, XmlInput inXml, string expectedValue) { XPath xpath = new XPath(anXPathExpression); NUnit.Framework.Assert.AreEqual(expectedValue, xpath.EvaluateXPath(inXml)); }
public static void AssertXPathEvaluatesTo(string anXPathExpression, XmlInput inXml, string expectedValue) { XPath xpath = new XPath(anXPathExpression); AssertEquals(expectedValue, xpath.EvaluateXPath(inXml)); }
public void XpathEvaluatesToEmptyStringForUnmatchedExpression() { string expectedValue = ""; XPath xpath = new XPath(NONEXISTENT_XPATH); Assertion.AssertEquals(expectedValue, xpath.EvaluateXPath(SIMPLE_XML)); }
public void XpathEvaluatesMultiNodeExpression() { string expectedValue = "onetwo"; XPath xpath = new XPath(MULTI_NODE_XPATH); Assertion.AssertEquals(expectedValue, xpath.EvaluateXPath(MORE_COMPLEX_XML)); }
public void XpathEvaluatesCountExpression() { string expectedValue = "2"; XPath xpath = new XPath(COUNT_XPATH); Assertion.AssertEquals(expectedValue, xpath.EvaluateXPath(MORE_COMPLEX_XML)); }
public static void XPathEvaluatesTo(String expression, XmlInput xmlInput, String expectedValue, String message = "", Object[] args = null) { var xpath = new XPath(expression); NUnit.Framework.Assert.AreEqual(expectedValue, xpath.EvaluateXPath(xmlInput), message, args); }
public static void AssertXPathEvaluatesTo(string anXPathExpression, XmlInput inXml, string expectedValue) { XPath xpath = new XPath(anXPathExpression); NUnit.Framework.Assert.AreEqual(expectedValue, xpath.EvaluateXPath(inXml)); }