Sdílet prostřednictvím


TestContext.CurrentTestOutcome – vlastnost

Tuto vlastnost můžete v metodě TestCleanup k určení výsledku testu, který byl spuštěn.

Obor názvů:  Microsoft.VisualStudio.TestTools.UnitTesting
Sestavení:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (v Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

Syntaxe

'Deklarace
Public Overridable ReadOnly Property CurrentTestOutcome As UnitTestOutcome
    Get
public virtual UnitTestOutcome CurrentTestOutcome { get; }
public:
virtual property UnitTestOutcome CurrentTestOutcome {
    UnitTestOutcome get ();
}
abstract CurrentTestOutcome : UnitTestOutcome
override CurrentTestOutcome : UnitTestOutcome
function get CurrentTestOutcome () : UnitTestOutcome

Hodnota vlastnosti

Typ: Microsoft.VisualStudio.TestTools.UnitTesting.UnitTestOutcome
A UnitTestOutcome , uvádí výsledek zkoušky, která má spustit.

Zabezpečení rozhraní .NET Framework

Viz také

Odkaz

TestContext Třída

Microsoft.VisualStudio.TestTools.UnitTesting – obor názvů