TestContext.TestDeploymentDir Property
Gets the path to the test deployment directory. Deprecated. Use DeploymentDirectory instead.
Namespace: Microsoft.VisualStudio.TestTools.UnitTesting
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
Syntax
'Declaration
Public Overridable ReadOnly Property TestDeploymentDir As String
public virtual string TestDeploymentDir { get; }
public:
virtual property String^ TestDeploymentDir {
String^ get ();
}
abstract TestDeploymentDir : string with get
override TestDeploymentDir : string with get
function get TestDeploymentDir () : String
Property Value
Type: String
The path to the test deployment directory.
Exceptions
Exception | Condition |
---|---|
InvalidCastException | An invalid value type is associated with the TestDeploymentDir property of the test context. |
Remarks
This value is the Out directory where the test and deployed items are put to run the test.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.TestTools.UnitTesting Namespace