Called to execute a test case.
Namespace:  Microsoft.VisualStudio.TestTools.Execution
Assembly:  Microsoft.VisualStudio.QualityTools.ExecutionCommon (in Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)
Syntax
'Declaration
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
)
Parameters
- testElement 
 Type: Microsoft.VisualStudio.TestTools.Common.ITestElement- The test element that describes which adapter to load. 
- testContext 
 Type: Microsoft.VisualStudio.TestTools.Execution.ITestContext- The context for the adapter. 
.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.