Click or drag to resize

ITestApiTrue Method

Verifies that an expression is true.
Examples
var testApi = ctx.Use<ITestApi>();
var dataObject = new JObject() { { "Role", "Admin" }};
testApi.True(dataObject["Role"].ToObject<string>() == "Admin", "Role must contain admin");

Namespace:  Casewhere.Runtime.DSL.Api
Assembly:  Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.1.0
Syntax
C#
void True(
	bool condition,
	string reason
)

Parameters

condition
Type: SystemBoolean
Logical condition expression.
reason
Type: SystemString
Error message.
See Also