ClassAssertTable
Provide HtmlTable specific asserts
Definition
Namespace:ArtOfTest.WebAii.Controls.HtmlControls.HtmlAsserts
Assembly:ArtOfTest.WebAii.dll
Syntax:
public class AssertTable : BaseControlAssert<HtmlTable>
Inheritance: objectBaseControlAssert<HtmlTable>AssertTable
Inherited Members
Constructors
AssertTable(HtmlTable)
Create a new table assert and assigned it to an HtmlTable control.
Declaration
public AssertTable(HtmlTable table)
Parameters
table
The HtmlTable to set as the target
Methods
ColumnCount(NumberCompareType, int)
Asserts if the column count does not match.
Declaration
public bool ColumnCount(NumberCompareType compareType, int expected)
Parameters
compareType
The number compare type.
expected
The expected value.
Returns
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
public bool ColumnRange(NumberRangeCompareType compareType, int lowerEnd, int upperEnd)
Parameters
compareType
In/Out of range.
lowerEnd
Lower end of the range to compare.
upperEnd
Upper end of the range to compare.
Returns
True if the values match else will throw an AssertException.
Contains(StringCompareType, string)
Asserts that a certain text appears in the table.
Declaration
public bool Contains(StringCompareType compareType, string expectedString)
Parameters
compareType
The string compare type.
expectedString
The expected string
Returns
True if the values match else will throw an AssertException.
RowCount(NumberCompareType, int)
Asserts if the table row count does not match.
Declaration
public bool RowCount(NumberCompareType compareType, int expected)
Parameters
compareType
The number compare type.
expected
The expected value.
Returns
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
public bool RowRange(NumberRangeCompareType range, int lowerEnd, int upperEnd)
Parameters
range
In/Out of range.
lowerEnd
Lower end of range to compare.
upperEnd
Upper end of range to compare.
Returns
True if the values match else will throw an AssertException.