ITmi.AddTest 方法

此 API 支持 .NET Framework 基础结构,不适合在代码中直接使用。

将提供的测试添加到 Visual Studio 专业测试工具版 的 UI。

命名空间:  Microsoft.VisualStudio.TestTools.Common
程序集:  Microsoft.VisualStudio.QualityTools.Common(在 Microsoft.VisualStudio.QualityTools.Common.dll 中)

语法

声明
Function AddTest ( _
    test As ITestElement _
) As ITestElement
ITestElement AddTest(
    ITestElement test
)
ITestElement^ AddTest(
    ITestElement^ test
)
abstract AddTest : 
        test:ITestElement -> ITestElement 
function AddTest(
    test : ITestElement
) : ITestElement

参数

返回值

类型:Microsoft.VisualStudio.TestTools.Common.ITestElement
添加的测试元素。

.NET Framework 安全性

请参见

参考

ITmi 接口

Microsoft.VisualStudio.TestTools.Common 命名空间

ITestElement