CollectionAssert.AllItemsAreNotNull Method (ICollection)
Verifies that all items in the specified collection are not null. The assertion fails if any element is null.
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
| Exception | Condition |
|---|---|
| AssertFailedException |
An element which is null is found in collection. |
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.