SqlDatabaseTestClass.TestContext Property

 

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

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

Syntax

[BrowsableAttribute(false)]
public TestContext TestContext { get; set; }
public:
[BrowsableAttribute(false)]
property TestContext^ TestContext {
    TestContext^ get();
    void set(TestContext^ value);
}
[<BrowsableAttribute(false)>]
member TestContext : TestContext with get, set
<BrowsableAttribute(False)>
Public Property TestContext As 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.

See Also

SqlDatabaseTestClass Class
Microsoft.Data.Tools.Schema.Sql.UnitTesting Namespace

Return to top