MSDN Library
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
property UnitTestOutcome CurrentTestOutcome {
	virtual UnitTestOutcome get();
}

Property Value

Type: Microsoft.VisualStudio.TestTools.UnitTesting::UnitTestOutcome

A UnitTestOutcome that states the outcome of a test that has run.

Return to top
Show:
© 2016 Microsoft