Поделиться через


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.

Inheritance Hierarchy

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

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

Syntax

'Declaration
Public NotInheritable Class TestOutcomeHelper
public static class TestOutcomeHelper
public ref class TestOutcomeHelper abstract sealed
[<AbstractClass>]
[<Sealed>]
type TestOutcomeHelper =  class end
public final class TestOutcomeHelper

The TestOutcomeHelper type exposes the following members.

Methods

  Name Description
Public methodStatic member GetAggregationOutcome Returns the test outcome that represents the lowest numeric value for the outcome of each test result in the provided array.
Public methodStatic member IsAbort Returns a value that indicates whether the test was aborted.
Public methodStatic member IsFail Returns a value that indicates whether the test failed.
Public methodStatic member IsPass Returns a value that indicates whether the test passed.
Public methodStatic member IsTerminal Returns a value that indicates whether the test passed or failed.
Public methodStatic member IsWarning Returns a value that indicates whether the outcome is a warning.
Public methodStatic member Localize Returns the localized outcome message.

Top

Thread Safety

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

See Also

Reference

Microsoft.VisualStudio.TestTools.Common Namespace

TestOutcome