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)
public static void IsInstanceOfType( Object value, Type expectedType, string message )
value is null 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.