ITestExecutionPlugin.AfterTestCompleted 方法
在测试完成后调用此方法。
命名空间: Microsoft.VisualStudio.TestTools.Execution
程序集: Microsoft.VisualStudio.QualityTools.ExecutionCommon(在 Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll 中)
语法
声明
Sub AfterTestCompleted ( _
runContext As IDataCollectionRunContext, _
id As TestExecId _
)
void AfterTestCompleted(
IDataCollectionRunContext runContext,
TestExecId id
)
void AfterTestCompleted(
IDataCollectionRunContext^ runContext,
TestExecId^ id
)
abstract AfterTestCompleted :
runContext:IDataCollectionRunContext *
id:TestExecId -> unit
function AfterTestCompleted(
runContext : IDataCollectionRunContext,
id : TestExecId
)
参数
- runContext
类型:Microsoft.VisualStudio.TestTools.Execution.IDataCollectionRunContext
一个表示测试上下文的 IDataCollectionRunContext 对象。
- id
类型:Microsoft.VisualStudio.TestTools.Common.TestExecId
测试 ID。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。