Throw an AssertException if conditiion is false and throwAssert is true.
Namespace: ArtOfTest.WebAii.Controls
Assembly: ArtOfTest.WebAii (in ArtOfTest.WebAii.dll) Version: 2018.1.116.0 (2018.1.116.0)
Syntax
protected bool Assert( bool condition, string message, string expected, string actual, bool throwAssert )
Parameters
- condition
- Type: SystemBoolean
The condition result. - message
- Type: SystemString
The message. - expected
- Type: SystemString
Expected value. - actual
- Type: SystemString
Actual value. - throwAssert
- Type: SystemBoolean
Whether or not to throw the assert when condition is false.
Return Value
Type: BooleanReturns true/false of the condition result.
Exceptions
Exception | Condition |
---|---|
AssertException | Thrown when the comparison fails and throwAssert is true. |
See Also