TestContext.TestDir Property
Visual Studio 2012
Gets the path to the test directory. Deprecated. Use TestRunDirectory instead.
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
| Exception | Condition |
|---|---|
| InvalidCastException | An invalid value type is associated with the TestDir 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.