Udostępnij za pośrednictwem


TestContext.TestDeploymentDir Property

Gets the path to the test deployment directory.

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

Syntax

'Declaration
Public Overridable ReadOnly Property TestDeploymentDir As String
'Usage
Dim instance As TestContext 
Dim value As String 

value = instance.TestDeploymentDir
public virtual string TestDeploymentDir { get; }
public:
virtual property String^ TestDeploymentDir {
    String^ get ();
}
public function get TestDeploymentDir () : String

Property Value

Type: System.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

See Also

Reference

TestContext Class

TestContext Members

Microsoft.VisualStudio.TestTools.UnitTesting Namespace

Other Resources

Test Deployment

Using the TestContext Class