Partager via


TestResultBase Class

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
Protected method TestResultBase() Initializes a new instance of the TestResultBase class.
Public method TestResultBase(TestResultBase) Initializes a new instance of the TestResultBase class by making a copy of the provided test result instance.
Public method 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.
Protected method TestResultBase(SerializationInfo, StreamingContext) Initializes a new instance of the TestResultBase class from serialized XML data. Called by the test framework.

Top

Properties

  Name Description
Public property ExecId Gets the execution ID for the associated test.
Public property IsRunLevel Gets a value that indicates whether the associated test is a test run.
Public property RunId Gets the ID for the associated test run.

Top

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetObjectData Populates a SerializationInfo by using the data that is required to serialize the target object. (Overrides TestMessage.GetObjectData(SerializationInfo, StreamingContext).)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IsValid Determines whether this instance is valid. (Overrides TestMessage.IsValid().)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method 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.

See Also

Reference

Microsoft.VisualStudio.TestTools.Common Namespace

TestMessage