Provides a default instance of the collection to test.
Namespace:
MbUnit.Framework.ContractVerifiersAssembly: MbUnit (in MbUnit.dll) Version: 3.3.0.0 (3.3.610.0)
Syntax
Remarks
By default, the contract verifier attempts to invoke the default constructor to get an valid instance. Overwrite the default provider if the collection has no default constructor, or if you want the contract verifier to use a particular instance.
Examples
[VerifyContract] public readonly IContract CollectionTests = new CollectionContract<MyCollection, int> { DefaultInstance = () => new MyCollection(1, 2, 3) };
