Verifies that a type may be assigned to a variable of the specified type.
Namespace:
MbUnit.FrameworkAssembly: MbUnit (in MbUnit.dll) Version: 3.3.0.0 (3.3.610.0)
Syntax
| C# |
|---|
public static void IsAssignableFrom( Type expectedType, Type actualType ) |
| Visual Basic (Declaration) |
|---|
Public Shared Sub IsAssignableFrom ( _ expectedType As Type, _ actualType As Type _ ) |
Parameters
- expectedType
- Type: System..::.Type
The Type to compare with the actual Type.
- actualType
- Type: System..::.Type
The Type under examination.
Remarks
This assertion will fail if actualType is null.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentNullException | Thrown if expectedType or actualType is null. |
