Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AssertUtils.Understands(Object, String, Type) Method

checks, whether target supports the methods of requiredType. Supports testing transparent proxies.

[Visual Basic]
Public Overloads Shared Sub Understands( _
   ByVal target As Object, _
   ByVal targetName As String, _
   ByVal requiredType As Type _
)
[C#]
public static void Understands(
   object target,
   string targetName,
   Type requiredType
);

Parameters

target
the target instance or null
targetName
the name of the target to be used in error messages
requiredType
the type to test for

Exceptions

Exception Type Condition
ArgumentNullException if requiredType is null
NotSupportedException if it is not possible to invoke methods of type requiredType on target

See Also

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