Verifies that expectedValue is in the enumeration enumeration.
Namespace:
MbUnit.FrameworkAssembly: MbUnit (in MbUnit.dll) Version: 3.3.0.0 (3.3.459.0)
Syntax
| C# |
|---|
public static void Contains<T>( IEnumerable<T> enumeration, T expectedValue ) |
| Visual Basic (Declaration) |
|---|
Public Shared Sub Contains(Of T) ( _ enumeration As IEnumerable(Of T), _ expectedValue As T _ ) |
Parameters
- enumeration
- Type: System.Collections.Generic..::.IEnumerable<(Of <(T>)>)
The enumeration of items.
- expectedValue
- Type: T
The expected value expected to be found in the collection.
Type Parameters
- T
- The type of value.
Exceptions
| Exception | Condition |
|---|---|
| Gallio.Framework.Assertions..::.AssertionException | Thrown if the verification failed unless the current AssertionFailureBehavior indicates otherwise. |
