ICSharpCode.SharpUnit an Unit Testing Framework for .NET

Assertion.Assert Method (String, Boolean)

Asserts that a condition is true.

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

Parameters

message
The message to display if the condition is false
condition
The evaluated condition

Exceptions

Exception TypeCondition
AssertionFailedException thrown if condition == false

See Also

Assertion Class | Assertion Members | ICSharpCode.SharpUnit Namespace | Assertion.Assert Overload List