xmlunit-core : Org.XmlUnit.Diff Namespace

Difference Class

Combines a {@link Comparison} and its {@link ComparisonResult result}.

Syntax

public class Difference

Remarks

As the name implies, the implicit assumption is that the result is not ComparisonResult#EQUAL.

Requirements

Namespace: Org.XmlUnit.Diff
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.10.0.241

Members

See Also: Inherited members from object.

Public Constructors

Combines comparison and result.

Public Properties

[read-only]
Comparison Comparison . The details of the comparison.
[write-only]
Formatter IComparisonFormatter . Sets the default formatter to use with ToString().
[read-only]
Result ComparisonResult . The result of the difference.

Public Methods

override
ToString () : string
Returns a string representation of this difference using DefaultComparisonFormatter. a string representation of this difference
ToString (IComparisonFormatter) : string
Returns a string representation of this difference using the given IComparisonFormatter. the IComparisonFormatter to usea string representation of this difference

Extension Methods

static
Singleton<T> (this T) : IEnumerable<T>
An enumerable containing a single element.

Member Details

Difference Constructor

Combines comparison and result.

Syntax

public Difference (Comparison comparison, ComparisonResult result)

Parameters

comparison
Documentation for this section has not yet been entered.
result
Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Diff
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.10.0.241

Comparison Property

The details of the comparison.

Syntax

public Comparison Comparison { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Diff
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.10.0.241

Formatter Property

Sets the default formatter to use with ToString().

Syntax

public IComparisonFormatter Formatter { 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.Diff
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.10.0.241

Result Property

The result of the difference.

Syntax

public ComparisonResult Result { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Diff
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.10.0.241

ToString Method

Returns a string representation of this difference using DefaultComparisonFormatter. a string representation of this difference

Syntax

public override string ToString ()

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Diff
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.10.0.241

ToString Method

Returns a string representation of this difference using the given IComparisonFormatter. the IComparisonFormatter to usea string representation of this difference

Syntax

public string ToString (IComparisonFormatter formatter)

Parameters

formatter
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.Diff
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.10.0.241