TestExecution Class
This class represents events that are related to test execution.
Inheritance Hierarchy
System.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 | |
---|---|---|
TestExecution | Initializes a new instance of the TestExecution class. |
Top
Properties
Name | Description | |
---|---|---|
RunContext | Gets the context of this test run. |
Top
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Events
Name | Description | |
---|---|---|
AfterAssemblyCleanup | Occurs after the assembly finishes cleanup. | |
AfterAssemblyInitialize | Occurs after the assembly initializes. | |
AfterClassCleanup | Occurs after the class finishes cleanup. | |
AfterClassInitialize | Occurs after the class initializes. | |
AfterTestCleanup | Occurs after the test finishes cleanup. | |
AfterTestInitialize | Occurs after the test initializes. | |
BeforeAssemblyCleanup | Occurs before the assembly starts cleanup. | |
BeforeAssemblyInitialize | Occurs before the assembly starts initialization. | |
BeforeClassCleanup | Occurs before the class starts cleanup. | |
BeforeClassInitialize | Occurs before the class starts initialization. | |
BeforeTestCleanup | Occurs before the test starts cleanup. | |
BeforeTestInitialize | Occurs before the test starts initialization. | |
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.