CollectionAssert.AllItemsAreInstancesOfType Method (ICollection, Type)
Verifies that all elements in the specified collection are instances of the specified type. The assertion fails if for any element the type is not found in its inheritance hierarchy.
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
public static void AllItemsAreInstancesOfType( ICollection collection, Type expectedType )
An element in collection is null or expectedType is not found in the inheritance hierarchy of all elements in collection.
- 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.