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<TUnexpected>(
	Object actualValue,
	string messageFormat,
	params Object[] messageArgs
)
Visual Basic (Declaration)
Public Shared Sub IsNotInstanceOfType(Of TUnexpected) ( _
	actualValue As Object, _
	messageFormat As String, _
	ParamArray messageArgs As Object() _
)

Parameters

actualValue
Type: System..::.Object
The actual value.
messageFormat
Type: System..::.String
The custom assertion message format, or null if none.
messageArgs
Type: array< System..::.Object >[]()[]
The custom assertion message arguments, or null if none.

Type Parameters

TUnexpected
The unexpected type.

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.

See Also