DataCollectionContext.HasTestCase Property

Gets a value that indicates whether an executing test case is associated with this context.

Namespace:  Microsoft.VisualStudio.TestTools.Execution
Assembly:  Microsoft.VisualStudio.QualityTools.ExecutionCommon (in Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)

Syntax

'Declaration
Public ReadOnly Property HasTestCase As Boolean
public bool HasTestCase { get; }
public:
property bool HasTestCase {
    bool get ();
}
member HasTestCase : bool
function get HasTestCase () : boolean

Property Value

Type: System.Boolean
true if an associated test case is being executed; otherwise, false.

.NET Framework Security

See Also

Reference

DataCollectionContext Class

Microsoft.VisualStudio.TestTools.Execution Namespace

TestExecId