Click or drag to resize

ITestApiTrue Method

Verifies that an expression is true.
Example
C#
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.5.0
Syntax
C#
void True(
	bool condition,
	string reason
)

Parameters

condition  Boolean
Logical condition expression.
reason  String
Error message.
See Also