5 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
Microsoft.AspNetCore.InternalTesting.Tests (3)
TestContextTest.cs (3)
11public class TestContextTest : ITestMethodLifecycle 36public class TestContextNameShorteningTest : ITestMethodLifecycle 62public class TestContextTestClassShortNameAttributeTest : ITestMethodLifecycle
20 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>())
Microsoft.AspNetCore.InternalTesting.Tests (6)
TestContextTest.cs (6)
21Task ITestMethodLifecycle.OnTestStartAsync(TestContext context, CancellationToken cancellationToken) 27Task ITestMethodLifecycle.OnTestEndAsync(TestContext context, Exception exception, CancellationToken cancellationToken) 46Task ITestMethodLifecycle.OnTestStartAsync(TestContext context, CancellationToken cancellationToken) 52Task ITestMethodLifecycle.OnTestEndAsync(TestContext context, Exception exception, CancellationToken cancellationToken) 72Task ITestMethodLifecycle.OnTestStartAsync(TestContext context, CancellationToken cancellationToken) 78Task ITestMethodLifecycle.OnTestEndAsync(TestContext context, Exception exception, CancellationToken cancellationToken)