Share via


ExpectedExceptionBaseAttribute.TestContext Property

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

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

Syntax

'Declaration
Protected Friend Property TestContext As TestContext
protected internal TestContext TestContext { get; internal set; }
protected public:
property TestContext^ TestContext {
    TestContext^ get ();
    internal: void set (TestContext^ value);
}
member TestContext : TestContext with get, internal set
function get TestContext () : TestContext 
internal function set TestContext (value : TestContext)

Property Value

Type: Microsoft.VisualStudio.TestTools.UnitTesting.TestContext

Remarks

Provides information about and functionality for the current test.

.NET Framework Security

See Also

Reference

ExpectedExceptionBaseAttribute Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace