Table of Contents

OrderTestMethods Method

Definition

Namespace
Codebelt.Extensions.Xunit
Assemblies
Codebelt.Extensions.Xunit.dll
Source
src/Codebelt.Extensions.Xunit/PriorityTestMethodOrderer.cs

OrderTestMethods<TTestMethod>(IReadOnlyCollection<TTestMethod>)

Orders methods from the lowest numeric priority to the highest, placing methods without a priority last.

public IReadOnlyCollection<TTestMethod> OrderTestMethods<TTestMethod>(IReadOnlyCollection<TTestMethod> testMethods) where TTestMethod : notnull, ITestMethod

Parameters

testMethods IReadOnlyCollection<TTestMethod>

The methods to order.

Returns

IReadOnlyCollection<TTestMethod>

The ordered methods.

Type Parameters

TTestMethod

The type of test method.

Exceptions

ArgumentNullException

testMethods is null.