Click or drag to resize

ITestApiFalse Method

Verifies that an expression is false.
Example
C#
var testApi = ctx.Use<ITestApi>();
var dataObject = new JObject() { { "Role", "Admin" }};
testApi.False(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 False(
	bool condition,
	string reason
)

Parameters

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