Partager via


TestExtensionExecution.Initialize Method

Before execution starts, this method is called to enable subscription to the Unit Test Events.

Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

Syntax

'Declaration
Public MustOverride Sub Initialize ( _
    execution As TestExecution _
)
public abstract void Initialize(
    TestExecution execution
)
public:
virtual void Initialize(
    TestExecution^ execution
) abstract
abstract Initialize : 
        execution:TestExecution -> unit
public abstract function Initialize(
    execution : TestExecution
)

Parameters

Remarks

This method is called to enable the developer to obtain test execution information, and to subscribe to Unit Test events.

.NET Framework Security

See Also

Reference

TestExtensionExecution Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace

TestExtensionExecution

TestExecution