CollectionAssert.AllItemsAreNotNull Method

Include Protected Members
Include Inherited Members

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

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public methodStatic member AllItemsAreNotNull(ICollection) Verifies that all items in the specified collection are not nulla null reference (Nothing in Visual Basic). The assertion fails if any element is nulla null reference (Nothing in Visual Basic).
Public methodStatic member AllItemsAreNotNull(ICollection, String) Verifies that all items in the specified collection are not nulla null reference (Nothing in Visual Basic). The assertion fails if any element is nulla null reference (Nothing in Visual Basic). Displays a message if the assertion fails.
Public methodStatic member AllItemsAreNotNull(ICollection, String, array<Object[]) Verifies that all items in the specified collection are not nulla null reference (Nothing in Visual Basic). The assertion fails if any element is nulla null reference (Nothing in Visual Basic). Displays a message if the assertion fails, and applies the specified formatting to it.

Top

See Also

Reference

CollectionAssert Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace