CollectionAssert Members
Verifies true/false propositions associated with collections in unit tests.
The following tables list the members exposed by the CollectionAssert type.
(see also
Protected Methods
)
Top
| Name | Description | |
|---|---|---|
| AllItemsAreInstancesOfType | Overloaded. Verifies that all elements in a specified collection are instances of a specified type. |
| AllItemsAreNotNull | Overloaded. Verifies that all items in a specified collection are not a null reference (Nothing in Visual Basic). |
| AllItemsAreUnique | Overloaded. Verifies that all items in a specified collection are unique. |
| 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. |
| 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. |
| AreNotEqual | Overloaded. Verifies that specified collections are not equal. |
| AreNotEquivalent | Overloaded. Verifies that the specified collections are not equivalent. |
| Contains | Overloaded. Verifies that a specified collection contains a specified element. |
| DoesNotContain | Overloaded. Verifies that a specified collection does not contain a specified element. |
| Equals | Overloaded. (Inherited from Object.) |
| GetHashCode | (Inherited from Object.) |
| GetType | (Inherited from Object.) |
| IsNotSubsetOf | Overloaded. Verifies that one collection is not a subset of another collection. |
| IsSubsetOf | Overloaded. Verifies that one collection is a subset of another collection. |
| ReferenceEquals | (Inherited from Object.) |
| ToString | (Inherited from Object.) |