Class XunitTestCaseRunnerBaseContext<TTestCase, TTest>
Context class for XunitTestCaseRunnerBase<TContext, TTestCase, TTest>.
public class XunitTestCaseRunnerBaseContext<TTestCase, TTest> : TestCaseRunnerContext<TTestCase, TTest>, IAsyncLifetime, IAsyncDisposable where TTestCase : class, IXunitTestCase where TTest : class, IXunitTest
Type Parameters
TTestCaseTTest
- Inheritance
-
TestCaseRunnerBaseContext<TTestCase>TestCaseRunnerContext<TTestCase, TTest>XunitTestCaseRunnerBaseContext<TTestCase, TTest>
- Implements
- Derived
- Inherited Members
Constructors
XunitTestCaseRunnerBaseContext(TTestCase, IReadOnlyCollection<TTest>, IMessageBus, ExceptionAggregator, CancellationTokenSource, string, string?, ExplicitOption, object?[])
Context class for XunitTestCaseRunnerBase<TContext, TTestCase, TTest>.
public XunitTestCaseRunnerBaseContext(TTestCase testCase, IReadOnlyCollection<TTest> tests, IMessageBus messageBus, ExceptionAggregator aggregator, CancellationTokenSource cancellationTokenSource, string displayName, string? skipReason, ExplicitOption explicitOption, object?[] constructorArguments)
Parameters
testCaseTTestCaseThe test case
testsIReadOnlyCollection<TTest>The tests for the test case
messageBusIMessageBusThe message bus to send execution messages to
aggregatorExceptionAggregatorThe exception aggregator
cancellationTokenSourceCancellationTokenSourceThe cancellation token source
displayNamestringThe display name of the test case
skipReasonstringThe skip reason, if the test case is being skipped
explicitOptionExplicitOptionThe user's choice on how to treat explicit tests
constructorArgumentsobject[]The constructor arguments for the test class
Properties
BeforeAfterTestAttributes
Gets the list of IBeforeAfterTestAttribute instances for this test case.
public IReadOnlyCollection<IBeforeAfterTestAttribute> BeforeAfterTestAttributes { get; }
Property Value
ConstructorArguments
Gets the arguments to pass to the constructor of the test class when creating it.
public object?[] ConstructorArguments { get; }
Property Value
- object[]
DisplayName
Gets the display name of the test case.
public string DisplayName { get; }
Property Value
SkipReason
Gets the statically specified skip reason for the test. Note that this only covers values passed via Skip, and not dynamically skipped tests.
public string? SkipReason { get; }
Property Value
Tests
Gets the tests for the given test case.
public override IReadOnlyCollection<TTest> Tests { get; }
Property Value
- IReadOnlyCollection<TTest>