Provides a default instance of the tested type.
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 type has no default constructor, or if you want to use a particular instance.
Examples
[VerifyContract] public readonly IContract AccessorTest = new AccessorContract<Foo, int> { DefaultInstance = () => new Foo("Hello") // Other initialization stuff... };
