Udostępnij za pośrednictwem


Właściwość TestResult.HasPassed —

Pobiera wartość, która wskazuje, czy skojarzony test ten wynik testu pomyślnie wykonane.

Przestrzeń nazw:  Microsoft.VisualStudio.TestTools.Common
Zestaw:  Microsoft.VisualStudio.QualityTools.Common (w Microsoft.VisualStudio.QualityTools.Common.dll)

Składnia

'Deklaracja
<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

Wartość właściwości

Typ: System.Boolean
true Jeżeli skojarzone test ten wynik testu pomyślnie wykonane; w przeciwnym razie false.

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

TestResult Klasa

Przestrzeń nazw Microsoft.VisualStudio.TestTools.Common