Verifies that a Type may not be assigned to a variable of the specified type.
Namespace:
MbUnit.FrameworkAssembly: MbUnit (in MbUnit.dll) Version: 3.2.0.0 (3.2.581.0)
Syntax
| C# |
|---|
public static void IsNotAssignableFrom( Type unexpectedType, Type actualType ) |
| Visual Basic (Declaration) |
|---|
Public Shared Sub IsNotAssignableFrom ( _ unexpectedType As Type, _ actualType As Type _ ) |
Parameters
- unexpectedType
- Type: System..::.Type
The Type to compare with the object's 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 unexpectedType or actualType is null. |
