This class represents events that are related to test execution.
Inheritance Hierarchy
Object
  Microsoft.VisualStudio.TestTools.UnitTesting.TestExecution
Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
Syntax
'Declaration
Public MustInherit Class TestExecution
public abstract class TestExecution
public ref class TestExecution abstract
[<AbstractClass>]
type TestExecution =  class end
public abstract class TestExecution
The TestExecution type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| .gif) | TestExecution | Initializes a new instance of the TestExecution class. | 
Top
Properties
| Name | Description | |
|---|---|---|
| .gif) | RunContext | Gets the context of this test run. | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | 
| .gif) | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | 
| .gif) | GetHashCode | Serves as the default hash function. (Inherited from Object.) | 
| .gif) | GetType | Gets the Type of the current instance. (Inherited from Object.) | 
| .gif) | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | 
| .gif) | ToString | Returns a string that represents the current object. (Inherited from Object.) | 
Top
Events
| Name | Description | |
|---|---|---|
| .gif) | AfterAssemblyCleanup | Occurs after the assembly finishes cleanup. | 
| .gif) | AfterAssemblyInitialize | Occurs after the assembly initializes. | 
| .gif) | AfterClassCleanup | Occurs after the class finishes cleanup. | 
| .gif) | AfterClassInitialize | Occurs after the class initializes. | 
| .gif) | AfterTestCleanup | Occurs after the test finishes cleanup. | 
| .gif) | AfterTestInitialize | Occurs after the test initializes. | 
| .gif) | BeforeAssemblyCleanup | Occurs before the assembly starts cleanup. | 
| .gif) | BeforeAssemblyInitialize | Occurs before the assembly starts initialization. | 
| .gif) | BeforeClassCleanup | Occurs before the class starts cleanup. | 
| .gif) | BeforeClassInitialize | Occurs before the class starts initialization. | 
| .gif) | BeforeTestCleanup | Occurs before the test starts cleanup. | 
| .gif) | BeforeTestInitialize | Occurs before the test starts initialization. | 
| .gif) | OnTestStopping | Occurs when a test is stopped before it is completed. | 
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.