Class
HtmlControlsAssertExtensions

Assert extensions for the HtmlControl class.

Definition

Namespace:ArtOfTest.WebAii.Controls.HtmlControls

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public static class HtmlControlsAssertExtensions

Inheritance: objectHtmlControlsAssertExtensions

Methods

AssertAttribute(HtmlControl)

Assert methods based on the HtmlControl's attributes.

Declaration

cs-api-definition
public static AssertAttribute AssertAttribute(this HtmlControl control)

Parameters

control

HtmlControl

The HtmlControl being tested.

Returns

AssertAttribute

An AssertAttribute object initializated to this HTML cotnrol.

AssertAttribute(HtmlControl, bool)

Assert methods based on the HtmlControl's attributes

Declaration

cs-api-definition
public static AssertAttribute AssertAttribute(this HtmlControl control, bool throwOnFailure)

Parameters

control

HtmlControl

The HtmlControl being tested

throwOnFailure

bool

Whether to throw an exception if the assertion fails

Returns

AssertAttribute

An AssertAttribute object initialized to this HTML control

AssertContent(HtmlControl)

Assert methods based on the HtmlControl's content.

Declaration

cs-api-definition
public static AssertContent AssertContent(this HtmlControl control)

Parameters

control

HtmlControl

The HtmlControl being tested.

Returns

AssertContent

An AssertContent object initializated to this HTML cotnrol.

AssertStyle(HtmlControl)

Assert methods based on the HtmlControl's style.

Declaration

cs-api-definition
public static AssertStyle AssertStyle(this HtmlControl control)

Parameters

control

HtmlControl

The HtmlControl being tested.

Returns

AssertStyle

An AssertStyle object initializated to this HTML cotnrol.

AssertStyle(HtmlControl, bool)

Assert methods based on the HtmlControl's style.

Declaration

cs-api-definition
public static AssertStyle AssertStyle(this HtmlControl control, bool throwOnFailure)

Parameters

control

HtmlControl

The HtmlControl being tested.

throwOnFailure

bool

Whether this assert object should throw an exception if the check fails

Returns

AssertStyle

An AssertStyle object initializated to this HTML cotnrol.