1 instantiation of TestContext
Microsoft.AspNetCore.InternalTesting (1)
xunit\AspNetTestInvoker.cs (1)
37
var context = new
TestContext
(TestClass, ConstructorArguments, TestMethod, TestMethodArguments, _testOutputHelper);
15 references to TestContext
Microsoft.AspNetCore.InternalTesting (15)
CollectDumpAttribute.cs (2)
21
public Task OnTestStartAsync(
TestContext
context, CancellationToken cancellationToken)
26
public Task OnTestEndAsync(
TestContext
context, Exception exception, CancellationToken cancellationToken)
ITestMethodLifecycle.cs (2)
19
Task OnTestStartAsync(
TestContext
context, CancellationToken cancellationToken);
21
Task OnTestEndAsync(
TestContext
context, Exception exception, CancellationToken cancellationToken);
LoggedTest\LoggedTest.cs (1)
17
protected override void Initialize(
TestContext
context, MethodInfo methodInfo, object[] testMethodArguments, ITestOutputHelper testOutputHelper)
LoggedTest\LoggedTestBase.cs (6)
30
protected
TestContext
Context { get; private set; }
58
protected virtual void Initialize(
TestContext
context, MethodInfo methodInfo, object[] testMethodArguments, ITestOutputHelper testOutputHelper)
95
public virtual Task InitializeAsync(
TestContext
context, MethodInfo methodInfo, object[] testMethodArguments, ITestOutputHelper testOutputHelper)
101
protected virtual Task InitializeCoreAsync(
TestContext
context) => Task.CompletedTask;
117
Task ITestMethodLifecycle.OnTestStartAsync(
TestContext
context, CancellationToken cancellationToken)
123
Task ITestMethodLifecycle.OnTestEndAsync(
TestContext
context, Exception exception, CancellationToken cancellationToken)
TestFileOutputContext.cs (3)
15
/// implementing <see cref="ITestMethodLifecycle"/>, and accessing <see cref="
TestContext
.FileOutput"/>.
31
private readonly
TestContext
_parent;
33
public TestFileOutputContext(
TestContext
parent)
xunit\AspNetTestInvoker.cs (1)
37
var
context = new TestContext(TestClass, ConstructorArguments, TestMethod, TestMethodArguments, _testOutputHelper);