Export (0) Print
Expand All

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 )
  Name Description
Public method Static AllItemsAreInstancesOfType Overloaded. Verifies that all elements in a specified collection are instances of a specified type.  
Public method Static AllItemsAreNotNull Overloaded. Verifies that all items in a specified collection are not a null reference (Nothing in Visual Basic).  
Public method Static AllItemsAreUnique Overloaded. Verifies that all items in a specified collection are unique.  
Public method Static 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 method Static 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 method Static AreNotEqual Overloaded. Verifies that specified collections are not equal.  
Public method Static AreNotEquivalent Overloaded. Verifies that the specified collections are not equivalent.  
Public method Static Contains Overloaded. Verifies that a specified collection contains a specified element.  
Public method Static DoesNotContain Overloaded. Verifies that a specified collection does not contain a specified element.  
Public method Equals  Overloaded. (Inherited from Object.)
Public method GetHashCode  (Inherited from Object.)
Public method GetType  (Inherited from Object.)
Public method Static IsNotSubsetOf Overloaded. Verifies that one collection is not a subset of another collection.  
Public method Static IsSubsetOf Overloaded. Verifies that one collection is a subset of another collection.  
Public method Static ReferenceEquals  (Inherited from Object.)
Public method ToString  (Inherited from Object.)
Top

  Name Description
Protected method Finalize  (Inherited from Object.)
Protected method MemberwiseClone  (Inherited from Object.)
Top

Community Additions

ADD
Show:
© 2014 Microsoft