TestResult.HasPassed 屬性

取得值,這個值表示這個測試結果的相關聯測試是否順利執行。

命名空間:  Microsoft.VisualStudio.TestTools.Common
組件:  Microsoft.VisualStudio.QualityTools.Common (在 Microsoft.VisualStudio.QualityTools.Common.dll 中)

語法

'宣告
<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

屬性值

型別:System.Boolean
如果這個測試結果的相關聯測試順利執行,則為 true,否則為 false。

.NET Framework 安全性

請參閱

參考

TestResult 類別

Microsoft.VisualStudio.TestTools.Common 命名空間