所有测试适配器要实现的接口。
命名空间:  Microsoft.VisualStudio.TestTools.TestAdapter
程序集:  Microsoft.VisualStudio.QualityTools.ExecutionCommon(在 Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll 中)
语法
声明
Public Interface ITestAdapter _
    Inherits IBaseAdapter
public interface ITestAdapter : IBaseAdapter
public interface class ITestAdapter : IBaseAdapter
type ITestAdapter =  
    interface
        interface IBaseAdapter
    end
public interface ITestAdapter extends IBaseAdapter
ITestAdapter 类型公开以下成员。
方法
| 名称 | 说明 | |
|---|---|---|
| .gif) | AbortTestRun | 当测试运行过程中发生内部错误时调用。此方法的行为应与 StopTestRun 方法类似。 (继承自 IBaseAdapter。) | 
| .gif) | Cleanup | 当测试运行完成时调用。 (继承自 IBaseAdapter。) | 
| .gif) | Initialize | 在加载测试适配器执行测试运行时调用。 | 
| .gif) | PauseTestRun | 当用户请求暂停测试运行时调用。 (继承自 IBaseAdapter。) | 
| .gif) | PreTestRunFinished | 在测试运行完成时调用,使测试适配器可以进行清理。 | 
| .gif) | ReceiveMessage | 从用户界面、控制器或代理接收下游消息。 | 
| .gif) | ResumeTestRun | 当用户请求恢复测试运行时调用。 (继承自 IBaseAdapter。) | 
| .gif) | Run | 调用以执行测试用例。 (继承自 IBaseAdapter。) | 
| .gif) | StopTestRun | 当用户请求停止测试运行时调用。 (继承自 IBaseAdapter。) | 
页首