Share via


TestExecution Class

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
Protected method TestExecution Initializes a new instance of the TestExecution class.

Top

Properties

  Name Description
Public property RunContext Gets the context of this test run.

Top

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Events

  Name Description
Public event AfterAssemblyCleanup Occurs after the assembly finishes cleanup.
Public event AfterAssemblyInitialize Occurs after the assembly initializes.
Public event AfterClassCleanup Occurs after the class finishes cleanup.
Public event AfterClassInitialize Occurs after the class initializes.
Public event AfterTestCleanup Occurs after the test finishes cleanup.
Public event AfterTestInitialize Occurs after the test initializes.
Public event BeforeAssemblyCleanup Occurs before the assembly starts cleanup.
Public event BeforeAssemblyInitialize Occurs before the assembly starts initialization.
Public event BeforeClassCleanup Occurs before the class starts cleanup.
Public event BeforeClassInitialize Occurs before the class starts initialization.
Public event BeforeTestCleanup Occurs before the test starts cleanup.
Public event BeforeTestInitialize Occurs before the test starts initialization.
Public event 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.

See Also

Reference

Microsoft.VisualStudio.TestTools.UnitTesting Namespace