DatabaseTestClass.TestContext Property

Gets or sets the test context that is used by the test infrastructure.

Namespace:  Microsoft.Data.Schema.UnitTesting
Assembly:  Microsoft.Data.Schema.UnitTesting (in Microsoft.Data.Schema.UnitTesting.dll)

Syntax

'Declaration
<BrowsableAttribute(False)> _
Public Property TestContext As TestContext
[BrowsableAttribute(false)]
public TestContext TestContext { get; set; }
[BrowsableAttribute(false)]
public:
property TestContext^ TestContext {
    TestContext^ get ();
    void set (TestContext^ value);
}
[<BrowsableAttribute(false)>]
member TestContext : TestContext with get, set
function get TestContext () : TestContext
function set TestContext (value : TestContext)

Property Value

Type: Microsoft.VisualStudio.TestTools.UnitTesting.TestContext
A TestContext object.

Remarks

The test context is set by the test infrastructure to provide each test that executes with access to the context in which the test executes. The context is also made available during test initialization and cleanup.

.NET Framework Security

See Also

Reference

DatabaseTestClass Class

Microsoft.Data.Schema.UnitTesting Namespace