Class
AssertCheck

Assert the checked state for a CheckBox or RadioButton input

Definition

Namespace:ArtOfTest.WebAii.Controls.HtmlControls.HtmlAsserts

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public class AssertCheck : BaseControlAssert<HtmlInputControl>

Inheritance: objectBaseControlAssert<HtmlInputControl>AssertCheck

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

Constructors

AssertCheck()

Create an new AssertCheck.

Declaration

cs-api-definition
public AssertCheck()

AssertCheck(HtmlInputControl)

Create a new AssertCheck

Declaration

cs-api-definition
public AssertCheck(HtmlInputControl control)

Parameters

control

HtmlInputControl

The control to perform assert against.

AssertCheck(bool)

Create a new AssertCheck

Declaration

cs-api-definition
public AssertCheck(bool throwOnFailure)

Parameters

throwOnFailure

bool

Whether this object throws an exception when a check fails

Methods

IsFalse()

Assert if it is checked.

Declaration

cs-api-definition
public bool IsFalse()

Returns

bool

True if the values match else will throw an AssertException.

IsTrue()

Assert if it is not checked

Declaration

cs-api-definition
public bool IsTrue()

Returns

bool

True if the values match else will throw an AssertException.