Click or drag to resize
Ranorex

ValidateIsTrue Method (Boolean, String, Boolean)

Validates if the given condition is true.

Namespace:  Ranorex
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public static bool IsTrue(
	bool condition,
	string message,
	bool exceptionOnFail
)

Parameters

condition
Type: SystemBoolean
The condition to validate.
message
Type: SystemString
The message to log.
exceptionOnFail
Type: SystemBoolean
A value specifying if an exception should be thrown if the validation fails.

Return Value

Type: Boolean
true if the specified condition is true; otherwise, false.
Exceptions
ExceptionCondition
ValidationExceptionIf the validation fails and exceptionOnFail is true.
See Also