IBaseAdapter.Run 方法
呼叫以執行測試回合。
命名空間: Microsoft.VisualStudio.TestTools.Execution
組件: Microsoft.VisualStudio.QualityTools.ExecutionCommon (在 Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll 中)
語法
'宣告
Sub Run ( _
testElement As ITestElement, _
testContext As ITestContext _
)
void Run(
ITestElement testElement,
ITestContext testContext
)
void Run(
ITestElement^ testElement,
ITestContext^ testContext
)
abstract Run :
testElement:ITestElement *
testContext:ITestContext -> unit
function Run(
testElement : ITestElement,
testContext : ITestContext
)
參數
- testElement
型別:Microsoft.VisualStudio.TestTools.Common.ITestElement
測試項目,描述要載入哪個配接器。
- testContext
型別:Microsoft.VisualStudio.TestTools.Execution.ITestContext
配接器的內容。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。