ILoadTestAdapter.LoadRun 方法
线程安全的 Run 方法。
命名空间: Microsoft.VisualStudio.TestTools.TestAdapter
程序集: Microsoft.VisualStudio.QualityTools.ExecutionCommon(在 Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll 中)
语法
声明
Sub LoadRun ( _
testElement As ITestElement, _
testContext As ITestContext _
)
void LoadRun(
ITestElement testElement,
ITestContext testContext
)
void LoadRun(
ITestElement^ testElement,
ITestContext^ testContext
)
abstract LoadRun :
testElement:ITestElement *
testContext:ITestContext -> unit
function LoadRun(
testElement : ITestElement,
testContext : ITestContext
)
参数
- testElement
类型:Microsoft.VisualStudio.TestTools.Common.ITestElement
测试元素。
- testContext
类型:Microsoft.VisualStudio.TestTools.Execution.ITestContext
测试上下文。
备注
如果测试适配器实现此方法,它必须是线程安全的。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。