Commnon assert for strings.
Namespace: ArtOfTest.WebAii.Controls
Assembly: ArtOfTest.WebAii (in ArtOfTest.WebAii.dll) Version: 2018.1.116.0 (2018.1.116.0)
Syntax
protected bool AssertString( string expected, string actual, StringCompareType compareType, bool throwOnFailure = true )
Parameters
- expected
- Type: SystemString
The expected value. - actual
- Type: SystemString
The actual value. - compareType
- Type: ArtOfTest.CommonStringCompareType
The compare type (Contains, Exact, etc.). - throwOnFailure (Optional)
- Type: SystemBoolean
Return Value
Type: BooleanTrue.
Exceptions
Exception | Condition |
---|---|
AssertException | Thrown when the comparison fails. |
See Also