Verifies that an actual value is an instance of some expected type.

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

Syntax

C#
public static void IsInstanceOfType<TExpected>(
	Object actualValue
)
Visual Basic (Declaration)
Public Shared Sub IsInstanceOfType(Of TExpected) ( _
	actualValue As Object _
)

Parameters

actualValue
Type: System..::.Object
The actual value.

Type Parameters

TExpected
The expected 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