Class
AssertTable

Provide HtmlTable specific asserts

Definition

Namespace:ArtOfTest.WebAii.Controls.HtmlControls.HtmlAsserts

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public class AssertTable : BaseControlAssert<HtmlTable>

Inheritance: objectBaseControlAssert<HtmlTable>AssertTable

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

Constructors

AssertTable()

Create a new table assert object.

Declaration

cs-api-definition
public AssertTable()

AssertTable(HtmlTable)

Create a new table assert and assigned it to an HtmlTable control.

Declaration

cs-api-definition
public AssertTable(HtmlTable table)

Parameters

table

HtmlTable

The HtmlTable to set as the target

Methods

ColumnCount(NumberCompareType, int)

Asserts if the column count does not match.

Declaration

cs-api-definition
public bool ColumnCount(NumberCompareType compareType, int expected)

Parameters

compareType

NumberCompareType

The number compare type.

expected

int

The expected value.

Returns

bool

True if the values match else will throw an AssertException.

ColumnRange(NumberRangeCompareType, int, int)

Asserts if the column count is inside/outside the specified range.

Declaration

cs-api-definition
public bool ColumnRange(NumberRangeCompareType compareType, int lowerEnd, int upperEnd)

Parameters

compareType

NumberRangeCompareType

In/Out of range.

lowerEnd

int

Lower end of the range to compare.

upperEnd

int

Upper end of the range to compare.

Returns

bool

True if the values match else will throw an AssertException.

Contains(StringCompareType, string)

Asserts that a certain text appears in the table.

Declaration

cs-api-definition
public bool Contains(StringCompareType compareType, string expectedString)

Parameters

compareType

StringCompareType

The string compare type.

expectedString

string

The expected string

Returns

bool

True if the values match else will throw an AssertException.

RowCount(NumberCompareType, int)

Asserts if the table row count does not match.

Declaration

cs-api-definition
public bool RowCount(NumberCompareType compareType, int expected)

Parameters

compareType

NumberCompareType

The number compare type.

expected

int

The expected value.

Returns

bool

True if the values match else will throw an AssertException.

RowRange(NumberRangeCompareType, int, int)

Assert if the row count is inside/outside the specified range.

Declaration

cs-api-definition
public bool RowRange(NumberRangeCompareType range, int lowerEnd, int upperEnd)

Parameters

range

NumberRangeCompareType

In/Out of range.

lowerEnd

int

Lower end of range to compare.

upperEnd

int

Upper end of range to compare.

Returns

bool

True if the values match else will throw an AssertException.