TestDir Property
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

TestContext.TestDir Property

Gets the path to the test directory.

Namespace: Microsoft.VisualStudio.TestTools.UnitTesting
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in microsoft.visualstudio.qualitytools.unittestframework.dll)

public virtual string TestDir { get; }
/** @property */
public String get_TestDir ()

public function get TestDir () : String

Property Value

The path to the test directory.

Exception typeCondition


An invalid value type is associated with the TestDir property of the test context.

This value is the path to the directory that is created to contain the deployment directory. This is used to organize test runs. Each test run will be identified by the path to the TestDir.

© 2016 Microsoft