OrderedTestBase Class
Provides ordered test assertions.
Namespace
Songhay.Tests.Orderers
Base Types
  • object
graph BT Type-->Base0["object"] Type["OrderedTestBase"] class Type type-node

Syntax

[TestCaseOrderer(TestCaseOrderer.TypeName, TestCaseOrderer.AssemblyName)]
public abstract class OrderedTestBase

Remarks

For more detail, see “How to Order xUnit Tests and Collections” by Tom DuPont [http://www.tomdupont.net/2016/04/how-to-order-xunit-tests-and-collections.html]

Attributes

Type Description
TestCaseOrderer

Fields

Name Field Type Constant Value Summary
TestOrdinal int
The expected ordinal of the current test.
static

Methods

Name Return Value Summary
AssertTestName(string) void

Extension Methods

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