TestContext.TestDeploymentDir 属性

获取测试部署目录的路径。 已弃用。 请改用 DeploymentDirectory

命名空间:  Microsoft.VisualStudio.TestTools.UnitTesting
程序集:  Microsoft.VisualStudio.QualityTools.UnitTestFramework(在 Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll 中)

语法

声明
Public Overridable ReadOnly Property TestDeploymentDir As String
    Get
public virtual string TestDeploymentDir { get; }
public:
virtual property String^ TestDeploymentDir {
    String^ get ();
}
abstract TestDeploymentDir : string
override TestDeploymentDir : string
function get TestDeploymentDir () : String

属性值

类型:System.String
测试部署目录的路径。

异常

异常 条件
InvalidCastException

无效的值类型是与该 TestDeploymentDir 测试上下文的属性相关联。

备注

此值为 Out 目录,其中放置了用于运行测试的测试项和部署项。

.NET Framework 安全性

请参见

参考

TestContext 类

Microsoft.VisualStudio.TestTools.UnitTesting 命名空间

其他资源

Test Deployment

Using the TestContext Class