TestCaseOrderer Class
Implementation of ITestCaseOrderer for the use of TestOrderAttribute.
Namespace
Songhay.Tests.Orderers
Base Types
  • ITestCaseOrderer
graph BT Type-->Base0["ITestCaseOrderer"] Type["TestCaseOrderer"] class Type type-node

Syntax

public class TestCaseOrderer : ITestCaseOrderer

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

Name Field Type Constant Value Summary
AssemblyName string SonghayCore.xUnit
The type name
static
QueuedTests ConcurrentDictionary<string, ConcurrentQueue<string>>
The queued tests
static
TypeName string Songhay.Tests.Orderers.TestCaseOrderer
The type name
static

Methods

Name Return Value Summary
OrderTestCases<TTestCase>(IEnumerable<TTestCase>) IEnumerable<TTestCase>
Orders test cases for execution.

Extension Methods

Name Value Summary
IsAssignableToISerializable<TestCaseOrderer>() bool
Determines whether the specified type can be assigned to System.Runtime.Serialization.ISerializable.
ToObjectOrDbNull<TestCaseOrderer>() object
Boxes the nullable in object or returns DBNull.
ToReferenceTypeValueOrThrow<TestCaseOrderer>(string) T
Returns the non-null value of the specified, nullable reference type or throws an ArgumentNullException when the value is null.

See Also

  • ITestCaseOrderer