DataCollectorNotifications.RaiseTestFailedEvent メソッド
テスト ケースが失敗したことを診断データ アダプターに通知するための TestCaseFailed イベントを発生させます。
名前空間: Microsoft.VisualStudio.TestTools.Execution
アセンブリ: Microsoft.VisualStudio.QualityTools.ExecutionCommon (Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll 内)
構文
'宣言
Public MustOverride Sub RaiseTestFailedEvent ( _
testCase As ITestElement, _
failureType As TestCaseFailureType _
)
public abstract void RaiseTestFailedEvent(
ITestElement testCase,
TestCaseFailureType failureType
)
public:
virtual void RaiseTestFailedEvent(
ITestElement^ testCase,
TestCaseFailureType failureType
) abstract
abstract RaiseTestFailedEvent :
testCase:ITestElement *
failureType:TestCaseFailureType -> unit
public abstract function RaiseTestFailedEvent(
testCase : ITestElement,
failureType : TestCaseFailureType
)
パラメーター
- testCase
型 : Microsoft.VisualStudio.TestTools.Common.ITestElement
現在のテスト ケースを表す ITestElement オブジェクト。
- failureType
型 : Microsoft.VisualStudio.TestTools.Execution.TestCaseFailureType
TestCaseFailureType 値のいずれか。
.NET Framework セキュリティ
- 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。
参照
関連項目
DataCollectorNotifications クラス