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
- test
Tür: Microsoft.VisualStudio.TestTools.Common.ITestElement
Bir ITestElement hangi test bağdaştırıcısının yükleneceğini açıklar.
- runContext
Tür: Microsoft.VisualStudio.TestTools.Execution.IRunContext
IRunContext Test bağdaştırıcısı.
Dönüş Değeri
Tür: Microsoft.VisualStudio.TestTools.TestAdapter.ITestAdapter
Geçerli ITestAdapter.
Örnekler
.NET Framework Güvenliği
- Anında arayanlar için tam güven. Bu üye kısmen güvenilen kodla kullanılamaz. Daha fazla bilgi için bkz. Kısmen güvenilen kod kitaplıklarını kullanma.