Contract for verifying the implementation of the generic IList<(Of <(T>)>) interface.

Namespace:  MbUnit.Framework.ContractVerifiers
Assembly:  MbUnit (in MbUnit.dll) Version: 3.3.0.0 (3.3.610.0)

Syntax

C#
public class ListContract<TList, TItem> : CollectionContract<TList, TItem>
where TList : IList<TItem>
Visual Basic (Declaration)
Public Class ListContract(Of TList As IList(Of TItem), TItem) _
	Inherits CollectionContract(Of TList, TItem)

Type Parameters

TList
The type of the collection implementing IList<(Of <(T>)>).
TItem
The type of items contained by the list.

Remarks

Since the generic IList<(Of <(T>)>) interface is a descendant of the generic ICollection<(Of <(T>)>) interface, the contract verifier has the same tests as the CollectionContract<(Of <(TCollection, TItem>)>) contract verifier, plus the following built-in verifications:

Inheritance Hierarchy

System..::.Object
  MbUnit.Framework.ContractVerifiers..::.AbstractContract
    MbUnit.Framework.ContractVerifiers..::.CollectionContract<(Of <(TList, TItem>)>)
      MbUnit.Framework.ContractVerifiers..::.ListContract<(Of <(TList, TItem>)>)

See Also