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

Namespace:  MbUnit.Framework
Assembly:  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

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

See Also