The CollectionContract<(Of <(TCollection, TItem>)>) type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| CollectionContract<(Of <(TCollection, TItem>)>) |
Default constructor.
|
Methods
| Name | Description | |
|---|---|---|
| AssertDistinctIntancesNotEmpty |
Asserts that the collection of distinct instances specified by the user is not empty.
| |
| CreateNotSupportedWriteTest |
Creates a test that invokes an action over the collection, which
is supposed to not be supported. The test expects that an exception be thrown.
| |
| CreateNullArgumentTest |
Creates a test which runs an action over the collection with
a null argument. The test expects that an exception be thrown.
| |
| Equals | (Inherited from Object.) | |
| Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetContractVerificationTests | Overloaded. | |
| GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetSafeDefaultInstance |
Returns safely a default instance of the tested type.
| |
| GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
| MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| ToString | (Inherited from Object.) |
Extension Methods
| Name | Description | |
|---|---|---|
| Format | Overloaded. |
Properties
| Name | Description | |
|---|---|---|
| AcceptEqualItems |
Determines whether the collection is expected to accept several identical items (object equality).
The default value is true.
| |
| AcceptNullReference |
Determines whether the collection is expected to accept null references as valid items.
| |
| Context |
Gets the execution context.
(Inherited from AbstractContract.) | |
| DefaultInstance |
Provides a default instance of the collection to test.
| |
| DistinctInstances |
Gets a collection of distinct object instances that feeds the different tests.
| |
| IsReadOnly |
Determines whether the tested collection is expected to be read-only.
|
