Documentation for this section has not yet been entered.
See Also: Inherited members from NUnit.Framework.Constraints.Constraint.
|
Creates a Org.XmlUnit.Constraints.EvaluateXPathConstraint instance with the associated XPath expression and the value constraint corresponding to the XPath evaluation. |
override
|
Description | string . Documentation for this section has not yet been entered. |
override
|
ApplyTo<TActual>
(TActual)Documentation for this section has not yet been entered. |
|
static
|
HasXPath
(string, NUnit.Framework.Constraints.IConstraint)Creates a constraint that matches when the examined XML input has a value at the specified xPath that satisfies the specified valueConstraint. |
|
|
WithNamespaceContext
(IDictionary<string, string>)Utility method used for creating a namespace context mapping to be used in XPath matching. |
static
|
Singleton<T>
(this T)An enumerable containing a single element. |
Creates a Org.XmlUnit.Constraints.EvaluateXPathConstraint instance with the associated XPath expression and the value constraint corresponding to the XPath evaluation.Syntax
public EvaluateXPathConstraint (string xPath, NUnit.Framework.Constraints.IConstraint valueConstraint)Parameters
- xPath
- xPath expression
- valueConstraint
- constraint for the value at the specified xpath
Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: Org.XmlUnit.Constraints
Assembly: xmlunit-nunit3-constraints (in xmlunit-nunit3-constraints.dll)
Assembly Versions: 2.10.0.256
Documentation for this section has not yet been entered.Syntax
public override NUnit.Framework.Constraints.ConstraintResult ApplyTo<TActual> (TActual actual)Type Parameters
- TActual
- Documentation for this section has not yet been entered.
Parameters
- actual
- Documentation for this section has not yet been entered.
Returns
Documentation for this section has not yet been entered.Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: Org.XmlUnit.Constraints
Assembly: xmlunit-nunit3-constraints (in xmlunit-nunit3-constraints.dll)
Assembly Versions: 2.10.0.256
Documentation for this section has not yet been entered.Syntax
public override string Description { get; protected set; }Value
Documentation for this section has not yet been entered.Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: Org.XmlUnit.Constraints
Assembly: xmlunit-nunit3-constraints (in xmlunit-nunit3-constraints.dll)
Assembly Versions: 2.10.0.256
Creates a constraint that matches when the examined XML input has a value at the specified xPath that satisfies the specified valueConstraint.Syntax
public static EvaluateXPathConstraint HasXPath (string xPath, NUnit.Framework.Constraints.IConstraint valueConstraint)Parameters
- xPath
- xPath expression
- valueConstraint
- constraint for the value at the specified xpath
Returns
the xpath constraintRemarks
Documentation for this section has not yet been entered.Example
For example
Example Assert.That(xml, EvaluateXPathConstraint.HasXPath("//fruits/fruit/@name", Is.EqualTo("apple"))Requirements
Namespace: Org.XmlUnit.Constraints
Assembly: xmlunit-nunit3-constraints (in xmlunit-nunit3-constraints.dll)
Assembly Versions: 2.10.0.256
Utility method used for creating a namespace context mapping to be used in XPath matching.Syntax
public EvaluateXPathConstraint WithNamespaceContext (IDictionary<string, string> prefix2Uri)Parameters
- prefix2Uri
- maps from prefix to namespace URI. It is used to resolve XML namespace prefixes in the XPath expression
Returns
Documentation for this section has not yet been entered.Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: Org.XmlUnit.Constraints
Assembly: xmlunit-nunit3-constraints (in xmlunit-nunit3-constraints.dll)
Assembly Versions: 2.10.0.256