Bagikan melalui


TestContext.TestRunResultsDirectory Property

Gets the top-level directory for the test run result files. This property typically contains a subdirectory of ResultsDirectory.

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

Syntax

'Declaration
Public Overridable ReadOnly Property TestRunResultsDirectory As String
public virtual string TestRunResultsDirectory { get; }
public:
virtual property String^ TestRunResultsDirectory {
    String^ get ();
}
abstract TestRunResultsDirectory : string with get 
override TestRunResultsDirectory : string with get
function get TestRunResultsDirectory () : String

Property Value

Type: String
The top-level directory for the test run result files.

Exceptions

Exception Condition
InvalidCastException

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

.NET Framework Security

See Also

Reference

TestContext Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace