Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CollectionAssert::AllItemsAreInstancesOfType Method

 

Verifies that all elements in a specified collection are instances of a specified type.

Namespace:   Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAllItemsAreInstancesOfType(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.

System_CAPS_pubmethodSystem_CAPS_staticAllItemsAreInstancesOfType(ICollection^, Type^, String^)

Verifies that all elements in the specified collection are instances of the specified type. The assertion fails if there exists one element in the collection for which the specified type is not found in its inheritance hierarchy. Displays a message if the assertion fails.

System_CAPS_pubmethodSystem_CAPS_staticAllItemsAreInstancesOfType(ICollection^, Type^, String^, array<Object^>^)

Verifies that all elements in the specified collection are instances of the specified type. The assertion fails if there exists one element in the collection for which the specified type is not found in its inheritance hierarchy. Displays a message if the assertion fails, and applies the specified formatting to it.

Return to top
Show: