共用方式為


TestContext Constructor

Initializes a new instance of an object that derives from the TestContext class.

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

Syntax

'Declaration
Protected Sub New
protected TestContext()
protected:
TestContext()
new : unit -> TestContext
protected function TestContext()

Remarks

Cannot be used to initialize an instance of TestContext.

.NET Framework Security

See Also

Reference

TestContext Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace