Propriedade TestContext.CurrentTestOutcome

Você pode usar essa propriedade em um método TestCleanup para determinar o resultado de um teste que foi executado.

Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (em Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

Sintaxe

'Declaração
Public Overridable ReadOnly Property CurrentTestOutcome As UnitTestOutcome
public virtual UnitTestOutcome CurrentTestOutcome { get; }
public:
virtual property UnitTestOutcome CurrentTestOutcome {
    UnitTestOutcome get ();
}
abstract CurrentTestOutcome : UnitTestOutcome with get
override CurrentTestOutcome : UnitTestOutcome with get
function get CurrentTestOutcome () : UnitTestOutcome

Valor de propriedade

Tipo: Microsoft.VisualStudio.TestTools.UnitTesting.UnitTestOutcome
A UnitTestOutcome que informa o resultado de um teste que foi executado.

Segurança do .NET Framework

Consulte também

Referência

TestContext Classe

Namespace Microsoft.VisualStudio.TestTools.UnitTesting