Constraint that compares two XML sources with each other.
See Also: Inherited members from NUnit.Framework.Constraints.Constraint.
static
|
Singleton<T>
(this T)An enumerable containing a single element. |
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.2.0.90
Ignore comments.Syntax
public CompareConstraint IgnoreComments ()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.2.0.90
Ignore whitespace differences.Syntax
public CompareConstraint IgnoreWhitespace ()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.2.0.90
Create a CompareConstraint which compares the test-Object with the given control Object for identity.Syntax
public static CompareConstraint IsIdenticalTo (object control)Parameters
- control
- 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.2.0.90
Create a CompareConstraint which compares the test-Object with the given control Object for similarity.Syntax
public static CompareConstraint IsSimilarTo (object control)Parameters
- control
- Documentation for this section has not yet been entered.
Returns
Documentation for this section has not yet been entered.Remarks
Example for Similar: The XML node "<a>Text</a>" and "<a><![CDATA[Text]]></a>" are similar and the Test will not fail.Requirements
Namespace: Org.XmlUnit.Constraints
Assembly: xmlunit-nunit3-constraints (in xmlunit-nunit3-constraints.dll)
Assembly Versions: 2.2.0.90
Normalize whitespace before comparing.Syntax
public CompareConstraint NormalizeWhitespace ()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.2.0.90
Registers a filter for attributes.Syntax
public CompareConstraint WithAttributeFilter (Predicate<System.Xml.XmlAttribute> attributeFilter)Parameters
- attributeFilter
- Documentation for this section has not yet been entered.
Returns
Documentation for this section has not yet been entered.Remarks
Only attributes for which the predicate returns true are part of the comparison. By default all attributes are considered.
The "special" namespace, namespace-location and schema-instance-type attributes can not be ignored this way. If you want to suppress comparison of them you'll need to implement Org.XmlUnit.Diff.DifferenceEvaluator
Requirements
Namespace: Org.XmlUnit.Constraints
Assembly: xmlunit-nunit3-constraints (in xmlunit-nunit3-constraints.dll)
Assembly Versions: 2.2.0.90
Use a custom Formatter for the Error Messages. The defaultFormatter is DefaultComparisonFormatter.Syntax
public CompareConstraint WithComparisonFormatter (Org.XmlUnit.Diff.IComparisonFormatter comparisonFormatter)Parameters
- comparisonFormatter
- 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.2.0.90
Use the given Org.XmlUnit.Diff.ComparisonListeners when comparing.Syntax
public CompareConstraint WithComparisonListeners (params Org.XmlUnit.Diff.ComparisonListener[] comparisonListeners)Parameters
- comparisonListeners
- ComparisonListeners to use
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.2.0.90
Use the given Org.XmlUnit.Diff.DifferenceEvaluator when comparing.Syntax
public CompareConstraint WithDifferenceEvaluator (Org.XmlUnit.Diff.DifferenceEvaluator differenceEvaluator)Parameters
- differenceEvaluator
- DifferenceEvaluator to use
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.2.0.90
Use the given Org.XmlUnit.Diff.ComparisonListeners as difference listeners when comparing.Syntax
public CompareConstraint WithDifferenceListeners (params Org.XmlUnit.Diff.ComparisonListener[] comparisonListeners)Parameters
- comparisonListeners
- ComparisonListeners to use
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.2.0.90
Establish a namespace context mapping from prefix to URI that will be used in Comparison.Detail.XPath.Syntax
public CompareConstraint WithNamespaceContext (IDictionary<string, string> ctx)Parameters
- ctx
- Documentation for this section has not yet been entered.
Returns
Documentation for this section has not yet been entered.Remarks
Without a namespace context (or with an empty context) the XPath expressions will only use local names for elements and attributes.Requirements
Namespace: Org.XmlUnit.Constraints
Assembly: xmlunit-nunit3-constraints (in xmlunit-nunit3-constraints.dll)
Assembly Versions: 2.2.0.90
Registers a filter for nodes.Syntax
public CompareConstraint WithNodeFilter (Predicate<System.Xml.XmlNode> nodeFilter)Parameters
- nodeFilter
- Documentation for this section has not yet been entered.
Returns
Documentation for this section has not yet been entered.Remarks
Only nodes for which the predicate returns true are part of the comparison. By default nodes that are neither document types nor XML declarations are considered.Requirements
Namespace: Org.XmlUnit.Constraints
Assembly: xmlunit-nunit3-constraints (in xmlunit-nunit3-constraints.dll)
Assembly Versions: 2.2.0.90
Use the given Org.XmlUnit.Diff.INodeMatcher when comparing.Syntax
public CompareConstraint WithNodeMatcher (Org.XmlUnit.Diff.INodeMatcher nodeMatcher)Parameters
- nodeMatcher
- INodeMatcher to use
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.2.0.90