Verifies that the sequence of values are sorted in the specified order.
Namespace:
MbUnit.Framework
Assembly:
MbUnit (in MbUnit.dll) Version: 3.3.0.0 (3.3.610.0)
Syntax
| C# |
|---|
public static void Sorted<T>(
IEnumerable<T> values,
SortOrder sortOrder,
string messageFormat,
params Object[] messageArgs
)
|
| Visual Basic (Declaration) |
|---|
Public Shared Sub Sorted(Of T) ( _
values As IEnumerable(Of T), _
sortOrder As SortOrder, _
messageFormat As String, _
ParamArray messageArgs As Object() _
) |
Parameters
- values
- Type: System.Collections.Generic..::.IEnumerable<(Of <(T>)>)
The sequence of values to be tested.
- sortOrder
- Type: MbUnit.Framework..::.SortOrder
The expected sort order.
- 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
Exceptions
See Also