Share via


CollectionAssert Members

Include Protected Members
Include Inherited Members

Verifies true/false propositions associated with collections in unit tests.

Methods

 

Name

Description

Public methodStatic member

AllItemsAreInstancesOfType

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

Public methodStatic member

AllItemsAreNotNull

Overloaded. Verifies that all items in a specified collection are not nulla null reference (Nothing in Visual Basic).

Public methodStatic member

AllItemsAreUnique

Overloaded. Verifies that all items in a specified collection are unique.

Public methodStatic member

AreEqual

Overloaded. Verifies that specified collections are equal. Two collections are equal if they have the same elements in the same order and quantity. Elements are equal if their values are equal, not if they refer to the same object.

Public methodStatic member

AreEquivalent

Overloaded. Verifies that the specified collections are equivalent. Two collections are equivalent if they have the same elements in the same quantity, but in any order. Elements are equal if their values are equal, not if they refer to the same object.

Public methodStatic member

AreNotEqual

Overloaded. Verifies that specified collections are not equal.

Public methodStatic member

AreNotEquivalent

Overloaded. Verifies that the specified collections are not equivalent.

Public methodStatic member

Contains

Overloaded. Verifies that a specified collection contains a specified element.

Public methodStatic member

DoesNotContain

Overloaded. Verifies that a specified collection does not contain a specified element.

Public methodStatic member

IsNotSubsetOf

Overloaded. Verifies that one collection is not a subset of another collection.

Public methodStatic member

IsSubsetOf

Overloaded. Verifies that one collection is a subset of another collection.

Top

See Also

Reference

CollectionAssert Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace