This method is called before a test run execution starts.
Namespace:  Microsoft.VisualStudio.TestTools.Execution
Assembly:  Microsoft.VisualStudio.QualityTools.ExecutionCommon (in Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)
Syntax
'Declaration
Sub BeforeExecutionStarted ( _
    run As TestRun, _
    sink As IResultSink, _
    runContext As IDataCollectionRunContext _
)
void BeforeExecutionStarted(
    TestRun run,
    IResultSink sink,
    IDataCollectionRunContext runContext
)
void BeforeExecutionStarted(
    TestRun^ run, 
    IResultSink^ sink, 
    IDataCollectionRunContext^ runContext
)
abstract BeforeExecutionStarted : 
        run:TestRun * 
        sink:IResultSink * 
        runContext:IDataCollectionRunContext -> unit
function BeforeExecutionStarted(
    run : TestRun, 
    sink : IResultSink, 
    runContext : IDataCollectionRunContext
)
Parameters
- run 
 Type: Microsoft.VisualStudio.TestTools.Common.TestRun- The test run that is currently processed and for which a special action is required. 
- sink 
 Type: Microsoft.VisualStudio.TestTools.Execution.IResultSink- An IResultSink object that is used to send data. 
- runContext 
 Type: Microsoft.VisualStudio.TestTools.Execution.IDataCollectionRunContext- An IDataCollectionRunContext object that represents the context for the test. 
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
ITestExecutionPlugin Interface