Verifies true/false propositions associated with collections in unit tests.
'Usage You do not need to declare an instance of a static class in order to access its members. 'Declaration Public NotInheritable Class CollectionAssert
This class contains a set of static methods that evaluate a Boolean condition. If this condition evaluates to true, the assertion passes.
An assertion verifies an assumption of truth for compared conditions.
If the condition being verified is not true, the assertion fails.
The CollectionAssert class throws an AssertFailedException to signal a failure. This exception should not be captured. This exception is handled by the unit test engine to indicate an assert failure.