Click or drag to resize
GuardAssert Method
Checks for a condition;if the condition is false throws ArgumentException exception.

Namespace: Akka.Util
Assembly: Akka (in Akka.dll) Version: 0.8.0.0 (0.8.0.0)
Syntax
public static void Assert(
	bool condition,
	string errorMessage = "Expression should be true, but was false"
)

Parameters

condition
Type: SystemBoolean
The conditional expression to test.
errorMessage (Optional)
Type: SystemString
Exception message.
See Also