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 with get
function get HasTestCase () : boolean
Property Value
Type: Boolean
true if an associated test case is being executed; otherwise, false.
.NET Framework Security
- 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.