Поделиться через


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 - пространство имен