共用方式為


TestCaseFailedEventArgs 類別

表示針對 TestCaseFailed 事件提供的引數。

繼承階層架構

System.Object
  System.EventArgs
    Microsoft.VisualStudio.TestTools.Execution.DataCollectionEventArgs
      Microsoft.VisualStudio.TestTools.Execution.TestCaseEventArgs
        Microsoft.VisualStudio.TestTools.Execution.TestCaseFailedEventArgs

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

語法

'宣告
<SerializableAttribute> _
Public NotInheritable Class TestCaseFailedEventArgs _
    Inherits TestCaseEventArgs
[SerializableAttribute]
public sealed class TestCaseFailedEventArgs : TestCaseEventArgs
[SerializableAttribute]
public ref class TestCaseFailedEventArgs sealed : public TestCaseEventArgs
[<Sealed>]
[<SerializableAttribute>]
type TestCaseFailedEventArgs =  
    class
        inherit TestCaseEventArgs
    end
public final class TestCaseFailedEventArgs extends TestCaseEventArgs

TestCaseFailedEventArgs 型別會公開下列成員。

建構函式

  名稱 說明
公用方法 TestCaseFailedEventArgs 使用提供的參數值,初始化 TestCaseFailedEventArgs 類別的新執行個體。

回頁首

屬性

  名稱 說明
公用屬性 Context 取得或設定事件的內容資訊。 (繼承自 DataCollectionEventArgs)。
公用屬性 FailureType 取得或設定失敗類型 (如果有的話)。
公用屬性 IsChildTestCase 取得或設定值,這個值表示測試案例是否為另一個測試案例的子系。 (繼承自 TestCaseEventArgs)。
公用屬性 TcmInformation 取得物件,其中包含的資訊可用來從測試管理員伺服器取得測試案例的進一步資料。 (繼承自 TestCaseEventArgs)。
公用屬性 TestCaseId 取得或設定測試案例識別項。 (繼承自 TestCaseEventArgs)。
公用屬性 TestCaseName 取得或設定測試案例的名稱。 (繼承自 TestCaseEventArgs)。
公用屬性 TestElement 取得目前的測試。 (繼承自 TestCaseEventArgs)。

回頁首

方法

  名稱 說明
公用方法 Equals 判斷指定的 Object 和目前的 Object 是否相等。 (繼承自 Object)。
受保護的方法 Finalize 允許物件在記憶體回收進行回收之前,嘗試釋放資源並執行其他清除作業。 (繼承自 Object)。
公用方法 GetHashCode 做為特定型別的雜湊函式。 (繼承自 Object)。
公用方法 GetType 取得目前執行個體的 Type。 (繼承自 Object)。
受保護的方法 MemberwiseClone 建立目前 Object 的淺層複本 (Shallow Copy)。 (繼承自 Object)。
公用方法 ToString 傳回表示目前物件的字串。 (繼承自 Object)。

回頁首

執行緒安全

這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。並非所有的執行個體成員都是安全執行緒。

請參閱

參考

Microsoft.VisualStudio.TestTools.Execution 命名空間

TestCaseFailed