Namespace: Akka.UtilAssembly: Akka (in Akka.dll) Version: 0.8.0.0 (0.8.0.0)
Syntaxpublic static void Assert(
bool condition,
string errorMessage = "Expression should be true, but was false"
)
Public Shared Sub Assert (
condition As Boolean,
Optional errorMessage As String = "Expression should be true, but was false"
)
public:
static void Assert(
bool condition,
String^ errorMessage = L"Expression should be true, but was false"
)
static member Assert :
condition : bool *
?errorMessage : string
(* Defaults:
let _errorMessage = defaultArg errorMessage "Expression should be true, but was false"
*)
-> unit
Parameters
- condition
- Type: SystemBoolean
The conditional expression to test. - errorMessage (Optional)
- Type: SystemString
Exception message.
See Also