Share via


IHostAdapter.GetTestAdapter Method

Loads and returns the test adapter for the given test element and run context.

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

Syntax

'Declaration
Function GetTestAdapter ( _
    test As ITestElement, _
    runContext As IRunContext _
) As ITestAdapter
ITestAdapter GetTestAdapter(
    ITestElement test,
    IRunContext runContext
)
ITestAdapter^ GetTestAdapter(
    ITestElement^ test, 
    IRunContext^ runContext
)
abstract GetTestAdapter : 
        test:ITestElement * 
        runContext:IRunContext -> ITestAdapter
function GetTestAdapter(
    test : ITestElement, 
    runContext : IRunContext
) : ITestAdapter

Parameters

Return Value

Type: Microsoft.VisualStudio.TestTools.TestAdapter.ITestAdapter
The current ITestAdapter.

Examples

ITestElement

IRunContext

.NET Framework Security

See Also

Reference

IHostAdapter Interface

Microsoft.VisualStudio.TestTools.Execution Namespace