Partager via


TestExecutionEventArgs.TestContext Property

Gets the test context of the user.

Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

Syntax

'Declaration
Public ReadOnly Property TestContext As TestContext
public TestContext TestContext { get; }
public:
property TestContext^ TestContext {
    TestContext^ get ();
}
member TestContext : TestContext with get
function get TestContext () : TestContext

Property Value

Type: Microsoft.VisualStudio.TestTools.UnitTesting.TestContext
The test context of the user.

Remarks

This property is defined only in Initialize methods.

.NET Framework Security

See Also

Reference

TestExecutionEventArgs Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace