Click or drag to resize

ITestApiFalse Method

Verifies that an expression is false.
Examples
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.1.0
Syntax
C#
void False(
	bool condition,
	string reason
)

Parameters

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