-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,20 @@ | |
|
||
namespace Microsoft.VisualStudio.TestTools.UnitTesting; | ||
|
||
public readonly struct AssemblyCleanupExecutionContext | ||
Check failure on line 6 in src/TestFramework/TestFramework/Attributes/Lifecycle/Cleanup/AssemblyCleanupAttribute.cs Azure Pipelines / microsoft.testfx (Build MacOS Release)src/TestFramework/TestFramework/Attributes/Lifecycle/Cleanup/AssemblyCleanupAttribute.cs#L6
Check failure on line 6 in src/TestFramework/TestFramework/Attributes/Lifecycle/Cleanup/AssemblyCleanupAttribute.cs Azure Pipelines / microsoft.testfx (Build MacOS Release)src/TestFramework/TestFramework/Attributes/Lifecycle/Cleanup/AssemblyCleanupAttribute.cs#L6
Check failure on line 6 in src/TestFramework/TestFramework/Attributes/Lifecycle/Cleanup/AssemblyCleanupAttribute.cs Azure Pipelines / microsoft.testfx (Build MacOS Debug)src/TestFramework/TestFramework/Attributes/Lifecycle/Cleanup/AssemblyCleanupAttribute.cs#L6
Check failure on line 6 in src/TestFramework/TestFramework/Attributes/Lifecycle/Cleanup/AssemblyCleanupAttribute.cs Azure Pipelines / microsoft.testfx (Build MacOS Debug)src/TestFramework/TestFramework/Attributes/Lifecycle/Cleanup/AssemblyCleanupAttribute.cs#L6
Check failure on line 6 in src/TestFramework/TestFramework/Attributes/Lifecycle/Cleanup/AssemblyCleanupAttribute.cs Azure Pipelines / microsoft.testfx (Build Linux Debug)src/TestFramework/TestFramework/Attributes/Lifecycle/Cleanup/AssemblyCleanupAttribute.cs#L6
Check failure on line 6 in src/TestFramework/TestFramework/Attributes/Lifecycle/Cleanup/AssemblyCleanupAttribute.cs Azure Pipelines / microsoft.testfx (Build Linux Debug)src/TestFramework/TestFramework/Attributes/Lifecycle/Cleanup/AssemblyCleanupAttribute.cs#L6
Check failure on line 6 in src/TestFramework/TestFramework/Attributes/Lifecycle/Cleanup/AssemblyCleanupAttribute.cs Azure Pipelines / microsoft.testfx (Build Linux Release)src/TestFramework/TestFramework/Attributes/Lifecycle/Cleanup/AssemblyCleanupAttribute.cs#L6
Check failure on line 6 in src/TestFramework/TestFramework/Attributes/Lifecycle/Cleanup/AssemblyCleanupAttribute.cs Azure Pipelines / microsoft.testfx (Build Linux Release)src/TestFramework/TestFramework/Attributes/Lifecycle/Cleanup/AssemblyCleanupAttribute.cs#L6
Check failure on line 6 in src/TestFramework/TestFramework/Attributes/Lifecycle/Cleanup/AssemblyCleanupAttribute.cs Azure Pipelines / microsoft.testfxsrc/TestFramework/TestFramework/Attributes/Lifecycle/Cleanup/AssemblyCleanupAttribute.cs#L6
Check failure on line 6 in src/TestFramework/TestFramework/Attributes/Lifecycle/Cleanup/AssemblyCleanupAttribute.cs Azure Pipelines / microsoft.testfxsrc/TestFramework/TestFramework/Attributes/Lifecycle/Cleanup/AssemblyCleanupAttribute.cs#L6
|
||
{ | ||
internal AssemblyCleanupExecutionContext(Func<Task> assemblyCleanupExecutorGetter) | ||
=> AssemblyCleanupExecutorGetter = assemblyCleanupExecutorGetter; | ||
|
||
public Func<Task> AssemblyCleanupExecutorGetter { get; } | ||
} | ||
|
||
/// <summary> | ||
/// The assembly cleanup attribute. | ||
/// </summary> | ||
[AttributeUsage(AttributeTargets.Method)] | ||
public sealed class AssemblyCleanupAttribute : Attribute; | ||
public class AssemblyCleanupAttribute : Attribute | ||
{ | ||
public virtual async Task ExecuteAsync(AssemblyCleanupExecutionContext assemblyCleanupContext) | ||
=> await assemblyCleanupContext.AssemblyCleanupExecutorGetter(); | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,20 @@ | |
|
||
namespace Microsoft.VisualStudio.TestTools.UnitTesting; | ||
|
||
public readonly struct AssemblyInitializeExecutionContext | ||
Check failure on line 6 in src/TestFramework/TestFramework/Attributes/Lifecycle/Initialization/AssemblyInitializeAttribute.cs Azure Pipelines / microsoft.testfx (Build MacOS Release)src/TestFramework/TestFramework/Attributes/Lifecycle/Initialization/AssemblyInitializeAttribute.cs#L6
Check failure on line 6 in src/TestFramework/TestFramework/Attributes/Lifecycle/Initialization/AssemblyInitializeAttribute.cs Azure Pipelines / microsoft.testfx (Build MacOS Release)src/TestFramework/TestFramework/Attributes/Lifecycle/Initialization/AssemblyInitializeAttribute.cs#L6
Check failure on line 6 in src/TestFramework/TestFramework/Attributes/Lifecycle/Initialization/AssemblyInitializeAttribute.cs Azure Pipelines / microsoft.testfx (Build MacOS Debug)src/TestFramework/TestFramework/Attributes/Lifecycle/Initialization/AssemblyInitializeAttribute.cs#L6
Check failure on line 6 in src/TestFramework/TestFramework/Attributes/Lifecycle/Initialization/AssemblyInitializeAttribute.cs Azure Pipelines / microsoft.testfx (Build MacOS Debug)src/TestFramework/TestFramework/Attributes/Lifecycle/Initialization/AssemblyInitializeAttribute.cs#L6
Check failure on line 6 in src/TestFramework/TestFramework/Attributes/Lifecycle/Initialization/AssemblyInitializeAttribute.cs Azure Pipelines / microsoft.testfx (Build Linux Debug)src/TestFramework/TestFramework/Attributes/Lifecycle/Initialization/AssemblyInitializeAttribute.cs#L6
Check failure on line 6 in src/TestFramework/TestFramework/Attributes/Lifecycle/Initialization/AssemblyInitializeAttribute.cs Azure Pipelines / microsoft.testfx (Build Linux Debug)src/TestFramework/TestFramework/Attributes/Lifecycle/Initialization/AssemblyInitializeAttribute.cs#L6
Check failure on line 6 in src/TestFramework/TestFramework/Attributes/Lifecycle/Initialization/AssemblyInitializeAttribute.cs Azure Pipelines / microsoft.testfx (Build Linux Release)src/TestFramework/TestFramework/Attributes/Lifecycle/Initialization/AssemblyInitializeAttribute.cs#L6
Check failure on line 6 in src/TestFramework/TestFramework/Attributes/Lifecycle/Initialization/AssemblyInitializeAttribute.cs Azure Pipelines / microsoft.testfx (Build Linux Release)src/TestFramework/TestFramework/Attributes/Lifecycle/Initialization/AssemblyInitializeAttribute.cs#L6
Check failure on line 6 in src/TestFramework/TestFramework/Attributes/Lifecycle/Initialization/AssemblyInitializeAttribute.cs Azure Pipelines / microsoft.testfxsrc/TestFramework/TestFramework/Attributes/Lifecycle/Initialization/AssemblyInitializeAttribute.cs#L6
Check failure on line 6 in src/TestFramework/TestFramework/Attributes/Lifecycle/Initialization/AssemblyInitializeAttribute.cs Azure Pipelines / microsoft.testfxsrc/TestFramework/TestFramework/Attributes/Lifecycle/Initialization/AssemblyInitializeAttribute.cs#L6
|
||
{ | ||
internal AssemblyInitializeExecutionContext(Func<Task> assemblyInitializeExecutorGetter) | ||
=> AssemblyInitializeExecutorGetter = assemblyInitializeExecutorGetter; | ||
|
||
public Func<Task> AssemblyInitializeExecutorGetter { get; } | ||
} | ||
|
||
/// <summary> | ||
/// The assembly initialize attribute. | ||
/// </summary> | ||
[AttributeUsage(AttributeTargets.Method)] | ||
public sealed class AssemblyInitializeAttribute : Attribute; | ||
public class AssemblyInitializeAttribute : Attribute | ||
{ | ||
public virtual async Task ExecuteAsync(AssemblyInitializeExecutionContext assemblyInitializeContext) | ||
Check failure on line 20 in src/TestFramework/TestFramework/Attributes/Lifecycle/Initialization/AssemblyInitializeAttribute.cs Azure Pipelines / microsoft.testfx (Build MacOS Release)src/TestFramework/TestFramework/Attributes/Lifecycle/Initialization/AssemblyInitializeAttribute.cs#L20
Check failure on line 20 in src/TestFramework/TestFramework/Attributes/Lifecycle/Initialization/AssemblyInitializeAttribute.cs Azure Pipelines / microsoft.testfx (Build MacOS Debug)src/TestFramework/TestFramework/Attributes/Lifecycle/Initialization/AssemblyInitializeAttribute.cs#L20
Check failure on line 20 in src/TestFramework/TestFramework/Attributes/Lifecycle/Initialization/AssemblyInitializeAttribute.cs Azure Pipelines / microsoft.testfx (Build Linux Debug)src/TestFramework/TestFramework/Attributes/Lifecycle/Initialization/AssemblyInitializeAttribute.cs#L20
Check failure on line 20 in src/TestFramework/TestFramework/Attributes/Lifecycle/Initialization/AssemblyInitializeAttribute.cs Azure Pipelines / microsoft.testfx (Build Linux Release)src/TestFramework/TestFramework/Attributes/Lifecycle/Initialization/AssemblyInitializeAttribute.cs#L20
|
||
=> await assemblyInitializeContext.AssemblyInitializeExecutorGetter(); | ||
} |