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