TestContext.DeploymentDirectory Property
Visual Studio 2012
Gets the directory for files deployed for the test run. This property typically contains a subdirectory of TestRunDirectory.
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
| Exception | Condition |
|---|---|
| InvalidCastException | An invalid value type is associated with the TestDeploymentDir property of the test context. |
- 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.