An NDoc Documented Class Library

TraceEx.Assert Method 

Checks for a condition and writes a message to the trace listeners in the Listeners collection if the condition is false.

Note    The message is only written if the TraceLevel for the calling module is set to TraceLevel.Error or higher.

public static void Assert(
   bool condition,
   string message
);

Parameters

condition
<b>true</b> to prevent a message being written; otherwise, <b>false</b>.
message
A message to write

See Also

TraceEx Class | TraceEx Members | Genghis.Diagnostics Namespace