TestContext.CurrentTestOutcome Property
You can use this property in a TestCleanup method to determine the outcome of a test that has run.
Namespace: Microsoft.VisualStudio.TestTools.UnitTesting
Assembly: Microsoft.VisualStudio.SmartDevice.UnitTestFramework (in Microsoft.VisualStudio.SmartDevice.UnitTestFramework.dll)
Syntax
'Declaration
Public Overridable ReadOnly Property CurrentTestOutcome As UnitTestOutcome
'Usage
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
Property Value
Type: Microsoft.VisualStudio.TestTools.UnitTesting.UnitTestOutcome
A UnitTestOutcome that states the outcome of a test that has run.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.