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, string messageFormat, params Object[] messageArgs ) |
| Visual Basic (Declaration) |
|---|
Public Shared Sub Contains(Of T) ( _ enumeration As IEnumerable(Of T), _ expectedValue As T, _ messageFormat As String, _ ParamArray messageArgs As Object() _ ) |
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.
- messageFormat
- Type: System..::.String
The custom assertion message format, or null if none.
- messageArgs
- Type: array<
System..::.Object
>[]()[]
The custom assertion message arguments, or null if none.
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. |
