Assert.IsInstanceOfType Method (Object, Type, String)
Verifies that the specified object is an instance of the specified type. The assertion fails if the type is not found in the inheritance hierarchy of the object. Displays a message if the assertion fails.
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
static member IsInstanceOfType : value:Object * expectedType:Type * message:string -> unit
value is a null reference (Nothing in Visual Basic) or expectedType is not found in the inheritance hierarchy of value.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.