Verifies that an actual value is an instance of some expected type.
Namespace:
MbUnit.FrameworkAssembly: 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
| Exception | Condition |
|---|---|
| Gallio.Framework.Assertions..::.AssertionException | Thrown if the verification failed unless the current AssertionFailureBehavior indicates otherwise. |
