Class
AssertAttribute

Provides assert service for control attributes.

Definition

Namespace:ArtOfTest.WebAii.Controls.HtmlControls.HtmlAsserts

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public class AssertAttribute : BaseControlAssert<HtmlControl>

Inheritance: objectBaseControlAssert<HtmlControl>AssertAttribute

Inherited Members BaseControlAssert<HtmlControl>.NotFoundBaseControlAssert<HtmlControl>.NumberCompareRange(int, int, int, NumberRangeCompareType)BaseControlAssert<HtmlControl>.NumberCompare(int, int, NumberCompareType)BaseControlAssert<HtmlControl>.StringCompare(string, string, StringCompareType)BaseControlAssert<HtmlControl>.AssertNumber(int, int, NumberCompareType, bool)BaseControlAssert<HtmlControl>.AssertString(string, string, StringCompareType, bool)BaseControlAssert<HtmlControl>.Assert(bool, string, string, string, bool)BaseControlAssert<HtmlControl>.Assert(bool, string, string, string)BaseControlAssert<HtmlControl>.Target

Constructors

AssertAttribute()

Create a new AssertAttribute object.

Declaration

cs-api-definition
public AssertAttribute()

AssertAttribute(HtmlControl)

Create a new AssertAttribute object and assign it to an HtmlControl.

Declaration

cs-api-definition
public AssertAttribute(HtmlControl control)

Parameters

control

HtmlControl

The target control to assign to this object.

AssertAttribute(HtmlControl, bool)

Create a new instance of AssertAttribute class.

Declaration

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

Parameters

control

HtmlControl

The target control to assign to this object.

throwOnFailure

bool

Throw exception on failure.

AssertAttribute(bool)

Create a new instance of AssertAttribute class.

Declaration

cs-api-definition
public AssertAttribute(bool throwOnFailure)

Parameters

throwOnFailure

bool

Throw exception on failure.

Methods

Exists(string)

Assert if the specified attribute does not exist.

Declaration

cs-api-definition
public bool Exists(string attributeName)

Parameters

attributeName

string

The attribute name.

Returns

bool

True if the values match else will throw an AssertException.

ExistsNot(string)

Assert if the specified attribute does exist.

Declaration

cs-api-definition
public bool ExistsNot(string attributeName)

Parameters

attributeName

string

The attribute name.

Returns

bool

True if the values match else will throw an AssertException.

Value(string, StringCompareType, string)

Assert if the value of the specified attribute does not match.

Declaration

cs-api-definition
public bool Value(string attributeName, StringCompareType compare, string expectedValue)

Parameters

attributeName

string

The attribute name to compare the value of.

compare

StringCompareType

The string compare type.

expectedValue

string

The expected value.

Returns

bool

True if the values match else will throw an AssertException.