Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AssertUtils.Understands(Object, String, MethodBase) Method

Checks, whether method may be invoked on target. Supports testing transparent proxies.

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

Parameters

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

Exceptions

Exception Type Condition
ArgumentNullException if method is null
NotSupportedException if it is not possible to invoke method on target

See Also

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