Aracılığıyla paylaş


IHostAdapter.GetTestAdapter Yöntem

Yükler ve verilen sınama öğesi ve çalışma içeriği test bağdaştırıcını döndürür.

Ad alanı:  Microsoft.VisualStudio.TestTools.Execution
Derleme:  Microsoft.VisualStudio.QualityTools.ExecutionCommon (Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll içinde)

Sözdizimi

'Bildirim
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

Parametreler

Dönüş Değeri

Tür: Microsoft.VisualStudio.TestTools.TestAdapter.ITestAdapter
Geçerli ITestAdapter.

Örnekler

ITestElement

IRunContext

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

IHostAdapter Arabirim

Microsoft.VisualStudio.TestTools.Execution Ad Alanı