Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets or sets the test context being used by the test infrastructure.
Namespace: Microsoft.VisualStudio.TeamSystem.Data.UnitTesting
Assembly: Microsoft.VisualStudio.TeamSystem.Data.UnitTesting (in microsoft.visualstudio.teamsystem.data.unittesting.dll)
Syntax
'Declaration
Public Property TestContext As TestContext
'Usage
Dim instance As DatabaseTestClass
Dim value As TestContext
value = instance.TestContext
instance.TestContext = value
public TestContext TestContext { get; set; }
public:
property TestContext^ TestContext {
TestContext^ get ();
void set (TestContext^ value);
}
/** @property */
public TestContext get_TestContext ()
/** @property */
public void set_TestContext (TestContext value)
public function get TestContext () : TestContext
public function set TestContext (value : TestContext)
Remarks
The TestContext is set by the test infrastructure to provide each test that executes with access to the context that the test is executing in. The context is also made available during test initialization and cleanup.
See Also
Reference
DatabaseTestClass Class
DatabaseTestClass Members
Microsoft.VisualStudio.TeamSystem.Data.UnitTesting Namespace