Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AssertUtils.IsTrue(Boolean) Method

Assert a boolean expression, throwing

ArgumentException
if the test result is
false
.

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

Parameters

expression
a boolean expression.

Exceptions

Exception Type Condition
ArgumentException if expression is
false

See Also

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