2 implementations of ITestMethodLifecycle
Microsoft.AspNetCore.InternalTesting (2)
CollectDumpAttribute.cs (1)
19public class CollectDumpAttribute : Attribute, ITestMethodLifecycle
LoggedTest\LoggedTestBase.cs (1)
18public abstract class LoggedTestBase : ITestMethodLifecycle, IDisposable
14 references to ITestMethodLifecycle
Microsoft.AspNetCore.InternalTesting (14)
LoggedTest\LoggedTestBase.cs (2)
117Task ITestMethodLifecycle.OnTestStartAsync(TestContext context, CancellationToken cancellationToken) 123Task 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)
42foreach (var lifecycleHook in lifecycleHooks) 53foreach (var lifecycleHook in lifecycleHooks) 62private static IEnumerable<ITestMethodLifecycle> GetLifecycleHooks(object testClassInstance, Type testClass, MethodInfo testMethod) 64foreach (var attribute in testMethod.GetCustomAttributes(inherit: true).OfType<ITestMethodLifecycle>()) 69if (testClassInstance is ITestMethodLifecycle instance) 74foreach (var attribute in testClass.GetCustomAttributes(inherit: true).OfType<ITestMethodLifecycle>()) 79foreach (var attribute in testClass.Assembly.GetCustomAttributes(inherit: true).OfType<ITestMethodLifecycle>())