We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

TestResultErrorInfo Class

Represents an error or warning message that was encountered during a test run and included in the test result.


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

public sealed class TestResultErrorInfo : ICloneable, 

The TestResultErrorInfo type exposes the following members.

Public methodTestResultErrorInfoInitializes a new instance of the TestResultErrorInfo class by using the provided message.

Public propertyMessageGets or sets the test result error message text.
Public propertyStackTraceGets or sets the stack trace that was collected just before the associated error.

Public methodCloneReturns a copy of this error information object.
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodLoadLoads an instance of this class from the provided XML element by using the provided parameters.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSaveSaves this object in the provided XML element.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

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