Verifies that an actual value is not an instance of some unexpected type.

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

Syntax

C#
public static void IsNotInstanceOfType(
	Type unexpectedType,
	Object actualValue
)
Visual Basic (Declaration)
Public Shared Sub IsNotInstanceOfType ( _
	unexpectedType As Type, _
	actualValue As Object _
)

Parameters

unexpectedType
Type: System..::.Type
The unexpected type.
actualValue
Type: System..::.Object
The actual value.

Remarks

This assertion will fail if the object is null.

Exceptions

ExceptionCondition
Gallio.Framework.Assertions..::.AssertionExceptionThrown if the verification failed unless the current AssertionFailureBehavior indicates otherwise.
System..::.ArgumentNullExceptionThrown if unexpectedType is null.

See Also