Verifies that a type may be assigned to a variable of the specified type.

Namespace:  MbUnit.Framework
Assembly:  MbUnit (in MbUnit.dll) Version: 3.3.0.0 (3.3.610.0)

Syntax

C#
public static void IsAssignableFrom<TExpected>(
	Type actualType
)
Visual Basic (Declaration)
Public Shared Sub IsAssignableFrom(Of TExpected) ( _
	actualType As Type _
)

Parameters

actualType
Type: System..::.Type
The object under examination.

Type Parameters

TExpected
The Type to compare with the object's Type.

Remarks

This assertion will fail if actualType is null.

Exceptions

ExceptionCondition
System..::.ArgumentNullExceptionThrown if actualType is null.

See Also