Contains a collection of equivalent object instances.
Namespace:
MbUnit.Framework.ContractVerifiersAssembly: MbUnit (in MbUnit.dll) Version: 3.2.0.0 (3.2.528.0)
Syntax
| C# |
|---|
public class EquivalenceClass<T> : IEnumerable<T>, IEnumerable |
| Visual Basic (Declaration) |
|---|
Public Class EquivalenceClass(Of T) _ Implements IEnumerable(Of T), IEnumerable |
Type Parameters
- T
- The type of equivalent object instances.
Remarks
All the elements of the collection should be equal together, in the sense of the local implementation of an equality contract (IEquatable<(Of <(T>)>)) or a comparison contract (IComparable<(Of <(T>)>)).
Equivalence classes are used by some contract verifiers such as EqualityContract<(Of <(TTarget>)>) to check for the correct implementation of object equality or comparison.
