This documentation is archived and is not being maintained.

TestOutcomeHelper Class

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Provides helper methods for test outcomes.

System.Object
  Microsoft.VisualStudio.TestTools.Common.TestOutcomeHelper

Namespace:  Microsoft.VisualStudio.TestTools.Common
Assembly:  Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)

public static class TestOutcomeHelper

The TestOutcomeHelper type exposes the following members.

  NameDescription
Public methodStatic memberGetAggregationOutcomeReturns the test outcome that represents the lowest numeric value for the outcome of each test result in the provided array.
Public methodStatic memberIsAbortReturns a value that indicates whether the test was aborted.
Public methodStatic memberIsFailReturns a value that indicates whether the test failed.
Public methodStatic memberIsPassReturns a value that indicates whether the test passed.
Public methodStatic memberIsTerminalReturns a value that indicates whether the test passed or failed.
Public methodStatic memberIsWarningReturns a value that indicates whether the outcome is a warning.
Public methodStatic memberLocalizeReturns the localized outcome message.
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: