Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AssertUtils.IsTrue(Boolean, String) Method

Assert a boolean expression, throwing

ArgumentException
if the test result is
false
.

[Visual Basic]
Public Overloads Shared Sub IsTrue( _
   ByVal expression As Boolean, _
   ByVal message As String _
)
[C#]
public static void IsTrue(
   bool expression,
   string message
);

Parameters

expression
a boolean expression.
message
The exception message to use if the assertion fails.

Exceptions

Exception Type Condition
ArgumentException if expression is
false

See Also

AssertUtils Class | Spring.Util Namespace | AssertUtils.IsTrue Overload List