Share via


ITestRunner.Run Method

Runs a test case.

Namespace:  Microsoft.VisualStudio.TestTools.Execution
Assembly:  Microsoft.VisualStudio.QualityTools.ExecutionCommon (in Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)

Syntax

'Declaration
Function Run ( _
    testElement As ITestElement(), _
    resultSink As IResultSink _
) As AdapterRunResult
AdapterRunResult Run(
    ITestElement[] testElement,
    IResultSink resultSink
)
AdapterRunResult Run(
    array<ITestElement^>^ testElement, 
    IResultSink^ resultSink
)
abstract Run : 
        testElement:ITestElement[] * 
        resultSink:IResultSink -> AdapterRunResult
function Run(
    testElement : ITestElement[], 
    resultSink : IResultSink
) : AdapterRunResult

Parameters

Return Value

Type: Microsoft.VisualStudio.TestTools.Execution.AdapterRunResult
A member of the AdapterRunResult enumeration that indicates the success or failure of each test.

.NET Framework Security

See Also

Reference

ITestRunner Interface

Microsoft.VisualStudio.TestTools.Execution Namespace

ITestElement

IResultSink

AdapterRunResult