Provides an optional base class for a custom test result class.
Inheritance Hierarchy
Object
  Microsoft.VisualStudio.TestTools.Common.TestMessage
    Microsoft.VisualStudio.TestTools.Common.TestResultBase
Namespace:  Microsoft.VisualStudio.TestTools.Common
Assembly:  Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)
Syntax
'Declaration
<SerializableAttribute> _
Public Class TestResultBase _
    Inherits TestMessage _
    Implements ISerializable
[SerializableAttribute]
public class TestResultBase : TestMessage, 
    ISerializable
[SerializableAttribute]
public ref class TestResultBase : public TestMessage, 
    ISerializable
[<SerializableAttribute>]
type TestResultBase =  
    class 
        inherit TestMessage 
        interface ISerializable 
    end
public class TestResultBase extends TestMessage implements ISerializable
The TestResultBase type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| .gif) | TestResultBase() | Initializes a new instance of the TestResultBase class. | 
| .gif) | TestResultBase(TestResultBase) | Initializes a new instance of the TestResultBase class by making a copy of the provided test result instance. | 
| .gif) | TestResultBase(Guid, Guid) | Initializes a new instance of the TestResultBase class by using the provided test run ID and test execution ID. Called by the testing framework. | 
| .gif) | TestResultBase(SerializationInfo, StreamingContext) | Initializes a new instance of the TestResultBase class from serialized XML data. Called by the test framework. | 
Top
Properties
| Name | Description | |
|---|---|---|
| .gif) | ExecId | Gets the execution ID for the associated test. | 
| .gif) | IsRunLevel | Gets a value that indicates whether the associated test is a test run. | 
| .gif) | RunId | Gets the ID for the associated test run. | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | 
| .gif) | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | 
| .gif) | GetHashCode | Serves as the default hash function. (Inherited from Object.) | 
| .gif) | GetObjectData | Populates a SerializationInfo by using the data that is required to serialize the target object. (Overrides TestMessage.GetObjectData(SerializationInfo, StreamingContext).) | 
| .gif) | GetType | Gets the Type of the current instance. (Inherited from Object.) | 
| .gif) | IsValid | Determines whether this instance is valid. (Overrides TestMessage.IsValid().) | 
| .gif) | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | 
| .gif) | ToString | Returns a string that represents the current object. (Inherited from Object.) | 
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.