ITmi.AddTest Method
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Adds the provided test to the UI of Visual Studio Test Professional.
Namespace: Microsoft.VisualStudio.TestTools.Common
Assembly: Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)
Syntax
'Declaration
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
Parameters
- test
Type: Microsoft.VisualStudio.TestTools.Common.ITestElement
An ITestElement object.
Return Value
Type: Microsoft.VisualStudio.TestTools.Common.ITestElement
The added test element.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.