IHostAdapter.GetTestAdapter 方法

針對指定的測試項目和回合內容,載入和傳回測試配器。

命名空間:  Microsoft.VisualStudio.TestTools.Execution
組件:  Microsoft.VisualStudio.QualityTools.ExecutionCommon (在 Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll 中)

語法

'宣告
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

參數

傳回值

型別:Microsoft.VisualStudio.TestTools.TestAdapter.ITestAdapter
目前的 ITestAdapter

範例

ITestElement

IRunContext

.NET Framework 安全性

請參閱

參考

IHostAdapter 介面

Microsoft.VisualStudio.TestTools.Execution 命名空間