xmlunit-core : Org.XmlUnit.Diff Namespace

ElementSelectors.IConditionalSelectorBuilder Interface

Allows to build complex ElementSelectors by combining simpler blocks.

Syntax

public interface ElementSelectors.IConditionalSelectorBuilder

Remarks

All When*s are consulted in order and if one returns true then the associated ElementSelector is used. If all of them return false, the default set up with ElseUse if any is used.

Requirements

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

Members

Public Methods

Build () : ElementSelector
Builds a conditional ElementSelector.
ElseUse (ElementSelector) : ElementSelectors.IConditionalSelectorBuilder
Assigns a default ElementSelector that is used if all Whens have returned false.
When (Predicate<System.Xml.XmlElement>) : ElementSelectors.IConditionalSelectorBuilderThen
Sets up a conditional ElementSelector.
WhenElementIsNamed (string) : ElementSelectors.IConditionalSelectorBuilderThen
Sets up a conditional ElementSelector.
WhenElementIsNamed (System.Xml.XmlQualifiedName) : ElementSelectors.IConditionalSelectorBuilderThen
Sets up a conditional ElementSelector.

Extension Methods

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

Member Details

Build Method

Builds a conditional ElementSelector.

Syntax

public ElementSelector Build ()

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.9.1.209

ElseUse Method

Assigns a default ElementSelector that is used if all Whens have returned false.

Syntax

Parameters

es
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.9.1.209

When Method

Sets up a conditional ElementSelector.

Syntax

Parameters

predicate
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.9.1.209

WhenElementIsNamed Method

Sets up a conditional ElementSelector.

Syntax

public ElementSelectors.IConditionalSelectorBuilderThen WhenElementIsNamed (string expectedName)

Parameters

expectedName
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.9.1.209

WhenElementIsNamed Method

Sets up a conditional ElementSelector.

Syntax

Parameters

expectedName
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.9.1.209