Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CurrentTestOutcome Property

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.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

public virtual UnitTestOutcome CurrentTestOutcome { get; }

Property Value

Type: Microsoft.VisualStudio.TestTools.UnitTesting.UnitTestOutcome
A UnitTestOutcome that states the outcome of a test that has run.

Community Additions

ADD
Show:
© 2015 Microsoft