ClassAssertAttribute
Provides assert service for control attributes.
Definition
Namespace:ArtOfTest.WebAii.Controls.HtmlControls.HtmlAsserts
Assembly:ArtOfTest.WebAii.dll
Syntax:
public class AssertAttribute : BaseControlAssert<HtmlControl>
Inheritance: objectBaseControlAssert<HtmlControl>AssertAttribute
Inherited Members
Constructors
AssertAttribute()
Create a new AssertAttribute object.
Declaration
public AssertAttribute()
AssertAttribute(HtmlControl)
Create a new AssertAttribute object and assign it to an HtmlControl.
Declaration
public AssertAttribute(HtmlControl control)
Parameters
control
The target control to assign to this object.
AssertAttribute(HtmlControl, bool)
Create a new instance of AssertAttribute class.
Declaration
public AssertAttribute(HtmlControl control, bool throwOnFailure)
Parameters
control
The target control to assign to this object.
throwOnFailure
Throw exception on failure.
AssertAttribute(bool)
Create a new instance of AssertAttribute class.
Declaration
public AssertAttribute(bool throwOnFailure)
Parameters
throwOnFailure
Throw exception on failure.
Methods
Exists(string)
Assert if the specified attribute does not exist.
ExistsNot(string)
Assert if the specified attribute does exist.
Value(string, StringCompareType, string)
Assert if the value of the specified attribute does not match.
Declaration
public bool Value(string attributeName, StringCompareType compare, string expectedValue)
Parameters
attributeName
The attribute name to compare the value of.
compare
The string compare type.
expectedValue
The expected value.
Returns
True if the values match else will throw an AssertException.