ClassHtmlControlsAssertExtensions
Assert extensions for the HtmlControl class.
Definition
Namespace:ArtOfTest.WebAii.Controls.HtmlControls
Assembly:ArtOfTest.WebAii.dll
Syntax:
public static class HtmlControlsAssertExtensions
Inheritance: objectHtmlControlsAssertExtensions
Methods
AssertAttribute(HtmlControl)
Assert methods based on the HtmlControl's attributes.
Declaration
public static AssertAttribute AssertAttribute(this HtmlControl control)
Parameters
control
The HtmlControl being tested.
Returns
An AssertAttribute object initializated to this HTML cotnrol.
AssertAttribute(HtmlControl, bool)
Assert methods based on the HtmlControl's attributes
Declaration
public static AssertAttribute AssertAttribute(this HtmlControl control, bool throwOnFailure)
Parameters
control
The HtmlControl being tested
throwOnFailure
Whether to throw an exception if the assertion fails
Returns
An AssertAttribute object initialized to this HTML control
AssertContent(HtmlControl)
Assert methods based on the HtmlControl's content.
Declaration
public static AssertContent AssertContent(this HtmlControl control)
Parameters
control
The HtmlControl being tested.
Returns
An AssertContent object initializated to this HTML cotnrol.
AssertStyle(HtmlControl)
Assert methods based on the HtmlControl's style.
Declaration
public static AssertStyle AssertStyle(this HtmlControl control)
Parameters
control
The HtmlControl being tested.
Returns
An AssertStyle object initializated to this HTML cotnrol.
AssertStyle(HtmlControl, bool)
Assert methods based on the HtmlControl's style.
Declaration
public static AssertStyle AssertStyle(this HtmlControl control, bool throwOnFailure)
Parameters
control
The HtmlControl being tested.
throwOnFailure
Whether this assert object should throw an exception if the check fails
Returns
An AssertStyle object initializated to this HTML cotnrol.