ClassRadControlAssert
Represents the base class for assertion of RadControls wrappers.
Definition
Namespace:Telerik.WebAii.Controls.Html
Assembly:Telerik.WebAii.Controls.Html.dll
Syntax:
public class RadControlAssert : BaseControlAssert<HtmlControl>
Inheritance: objectBaseControlAssert<HtmlControl>RadControlAssert
Inherited Members
Constructors
RadControlAssert()
Initializes a new instance of the RadControlAssert class.
Declaration
public RadControlAssert()
RadControlAssert(HtmlControl)
Initializes a new instance of the RadControlAssert class.
Declaration
public RadControlAssert(HtmlControl control)
Parameters
control
The target control to assert against.
Methods
DecimalValue(string, decimal, NumberCompareType)
Assert a decimal.
Declaration
public bool DecimalValue(string controlPropertyName, decimal expected, NumberCompareType compareType)
Parameters
controlPropertyName
The property name to get value of.
expected
The expected string.
compareType
The compare type.
Returns
True/false whether the comparison works. Returns false if the property value is not of integer type.
NumberValue(string, int, NumberCompareType)
Assert a number.
Declaration
public bool NumberValue(string controlPropertyName, int expected, NumberCompareType compareType)
Parameters
controlPropertyName
The property name to get value of.
expected
The expected string.
compareType
The compare type.
Returns
True/false whether the comparison works. Returns false if the property value is not of integer type.
StringValue(string, string, StringCompareType)
Assert a string.
Declaration
public bool StringValue(string controlPropertyName, string expected, StringCompareType compareType)
Parameters
controlPropertyName
The property name to get value of.
expected
The expected string.
compareType
The compare type.
Returns
True/false whether the comparison works.