Class
AssertContent

Assert the content of an HtmlControl

Definition

Namespace:ArtOfTest.WebAii.Controls.HtmlControls.HtmlAsserts

Assembly:ArtOfTest.WebAii.dll

Syntax:

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

Inheritance: objectBaseControlAssert<HtmlControl>AssertContent

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

AssertContent()

Create an new AssertContent.

Declaration

cs-api-definition
public AssertContent()

AssertContent(HtmlControl)

Create a new AssertContent

Declaration

cs-api-definition
public AssertContent(HtmlControl control)

Parameters

control

HtmlControl

The control to perform assert against.

Methods

InnerMarkup(StringCompareType, string)

Assert the InnerMarkup of the element.

Declaration

cs-api-definition
public bool InnerMarkup(StringCompareType compareType, string expectedValue)

Parameters

compareType

StringCompareType

The string compare type.

expectedValue

string

The expected value.

Returns

bool

True if the values match else will throw an AssertException.

InnerText(StringCompareType, string)

Assert the InnerText of the element.

Declaration

cs-api-definition
public bool InnerText(StringCompareType compareType, string expectedValue)

Parameters

compareType

StringCompareType

The string compare type.

expectedValue

string

The expected value.

Returns

bool

True if the values match else will throw an AssertException.

OuterMarkup(StringCompareType, string)

Assert the OuterMarkup of the element.

Declaration

cs-api-definition
public bool OuterMarkup(StringCompareType compareType, string expectedValue)

Parameters

compareType

StringCompareType

The string compare type.

expectedValue

string

The expected value.

Returns

bool

True if the values match else will throw an AssertException.

StartTagContent(StringCompareType, string)

Assert the StartTagContent of the element.

Declaration

cs-api-definition
public bool StartTagContent(StringCompareType compareType, string expectedValue)

Parameters

compareType

StringCompareType

The string compare type.

expectedValue

string

The expected value.

Returns

bool

True if the values match else will throw an AssertException.

TextContent(StringCompareType, string)

Assert the TextContent of the element.

Declaration

cs-api-definition
public bool TextContent(StringCompareType compareType, string expectedValue)

Parameters

compareType

StringCompareType

The string compare type.

expectedValue

string

The expected value.

Returns

bool

True if the values match else will throw an AssertException.