TestContext.CurrentTestOutcome プロパティ

更新 : 2007 年 11 月

TestCleanup メソッドでこのプロパティを使用して、実行したテストの結果を確認できます。

名前空間 :  Microsoft.VisualStudio.TestTools.UnitTesting
アセンブリ :  Microsoft.VisualStudio.SmartDevice.UnitTestFramework (Microsoft.VisualStudio.SmartDevice.UnitTestFramework.dll 内)

構文

'宣言
Public Overridable ReadOnly Property CurrentTestOutcome As UnitTestOutcome
'使用
Dim instance As TestContext
Dim value As UnitTestOutcome

value = instance.CurrentTestOutcome
public virtual UnitTestOutcome CurrentTestOutcome { get; }
public:
virtual property UnitTestOutcome CurrentTestOutcome {
    UnitTestOutcome get ();
}
public function get CurrentTestOutcome () : UnitTestOutcome

プロパティ値

型 : Microsoft.VisualStudio.TestTools.UnitTesting.UnitTestOutcome

実行したテストの結果を示す UnitTestOutcome

アクセス許可

  • 直前の呼び出し元に対する完全な信頼。このメンバは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

参照

TestContext クラス

TestContext メンバ

Microsoft.VisualStudio.TestTools.UnitTesting 名前空間