TestResult.HasPassed Property

Gets a value that indicates whether the associated test for this test result successfully executed.

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

Syntax

'Declaration
<VisiblePropertyAttribute> _
Public Overridable ReadOnly Property HasPassed As Boolean
[VisiblePropertyAttribute]
public virtual bool HasPassed { get; }
[VisiblePropertyAttribute]
public:
virtual property bool HasPassed {
    bool get ();
}
[<VisiblePropertyAttribute>]
abstract HasPassed : bool with get
[<VisiblePropertyAttribute>]
override HasPassed : bool with get
function get HasPassed () : boolean

Property Value

Type: Boolean
true if the associated test for this test result successfully executed; otherwise, false.

.NET Framework Security

See Also

Reference

TestResult Class

Microsoft.VisualStudio.TestTools.Common Namespace