Class TestCaseOrderer
Implementation of Xunit.Sdk.ITestCaseOrderer for the use of TestOrderAttribute.
public class TestCaseOrderer : ITestCaseOrderer
- Inheritance
-
TestCaseOrderer
- Implements
-
ITestCaseOrderer
- Inherited Members
- Extension Methods
Remarks
For more detail, see “How to Order xUnit Tests and Collections” by Tom DuPont. [ see http://www.tomdupont.net/2016/04/how-to-order-xunit-tests-and-collections.html ]
Fields
AssemblyName
The type name
public const string AssemblyName = "SonghayCore.xUnit"
Field Value
QueuedTests
The queued tests
public static readonly ConcurrentDictionary<string, ConcurrentQueue<string>> QueuedTests
Field Value
TypeName
The type name
public const string TypeName = "Songhay.Tests.Orderers.TestCaseOrderer"
Field Value
Methods
OrderTestCases<TTestCase>(IEnumerable<TTestCase>)
Orders test cases for execution.
public IEnumerable<TTestCase> OrderTestCases<TTestCase>(IEnumerable<TTestCase> testCases) where TTestCase : ITestCase
Parameters
testCases
IEnumerable<TTestCase>The test cases to be ordered.
Returns
- IEnumerable<TTestCase>
The test cases in the order to be run.
Type Parameters
TTestCase
See Also
ITestCaseOrderer