2 implementations of ITestMethodLifecycle
Microsoft.AspNetCore.InternalTesting (2)
CollectDumpAttribute.cs (1)
19
public class CollectDumpAttribute : Attribute,
ITestMethodLifecycle
LoggedTest\LoggedTestBase.cs (1)
18
public abstract class LoggedTestBase :
ITestMethodLifecycle
, IDisposable
14 references to ITestMethodLifecycle
Microsoft.AspNetCore.InternalTesting (14)
LoggedTest\LoggedTestBase.cs (2)
117
Task
ITestMethodLifecycle
.OnTestStartAsync(TestContext context, CancellationToken cancellationToken)
123
Task
ITestMethodLifecycle
.OnTestEndAsync(TestContext context, Exception exception, CancellationToken cancellationToken)
TestContext.cs (1)
12
/// implementing <see cref="
ITestMethodLifecycle
"/>.
TestFileOutputContext.cs (1)
15
/// implementing <see cref="
ITestMethodLifecycle
"/>, and accessing <see cref="TestContext.FileOutput"/>.
xunit\AspNetTestInvoker.cs (10)
42
foreach (
var
lifecycleHook in lifecycleHooks)
53
foreach (
var
lifecycleHook in lifecycleHooks)
62
private static IEnumerable<
ITestMethodLifecycle
> GetLifecycleHooks(object testClassInstance, Type testClass, MethodInfo testMethod)
64
foreach (
var
attribute in testMethod.GetCustomAttributes(inherit: true).OfType<
ITestMethodLifecycle
>())
69
if (testClassInstance is
ITestMethodLifecycle
instance)
74
foreach (
var
attribute in testClass.GetCustomAttributes(inherit: true).OfType<
ITestMethodLifecycle
>())
79
foreach (
var
attribute in testClass.Assembly.GetCustomAttributes(inherit: true).OfType<
ITestMethodLifecycle
>())