TestId Class

Represents a unique ID for a test.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.TestTools.Common.TestId

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

Syntax

'Declaration
<SerializableAttribute> _
Public NotInheritable Class TestId _
    Implements IEquatable(Of TestId), IComparable(Of TestId),  _
    IComparable, IXmlTestStore
[SerializableAttribute]
public sealed class TestId : IEquatable<TestId>, 
    IComparable<TestId>, IComparable, IXmlTestStore
[SerializableAttribute]
public ref class TestId sealed : IEquatable<TestId^>, 
    IComparable<TestId^>, IComparable, IXmlTestStore
[<Sealed>]
[<SerializableAttribute>]
type TestId =  
    class
        interface IEquatable<TestId>
        interface IComparable<TestId>
        interface IComparable
        interface IXmlTestStore
    end
public final class TestId implements IEquatable<TestId>, IComparable<TestId>, IComparable, IXmlTestStore

The TestId type exposes the following members.

Constructors

  Name Description
Public method TestId() Initializes a new instance of the TestId class.
Public method TestId(Guid) Initializes a new instance of the TestId class by using the provided GUID.

Top

Properties

  Name Description
Public propertyStatic member Empty Gets an empty GUID.
Public property Id Gets the test GUID.

Top

Methods

  Name Description
Public method CompareTo(Object) Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Public method CompareTo(TestId) Compares the current instance with the provided test ID and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Public method Equals(Object) Returns a value that indicates whether a provided object is equal to the current object. (Overrides Object.Equals(Object).)
Public method Equals(TestId) Returns a value that indicates whether a provided test ID is equal to the current 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 a hash function for a particular type. (Overrides Object.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string representation of this test ID object. (Overrides Object.ToString().)

Top

Operators

  Name Description
Public operatorStatic member Equality Represents an equality operator (=) that is used to determine whether the provided objects are equal.
Public operatorStatic member GreaterThan Represents a greater-than operator (>) that is used to determine whether a provided object would appear before the other provided object in a sorted list.
Public operatorStatic member Inequality Represents an inequality operator (!=) that is used to determine whether the provided objects are not equal.
Public operatorStatic member LessThan Represents a less-than operator (<) that is used to determine whether a provided object would appear after the other provided object in a sorted list.

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IXmlTestStore.Load Loads an instance of this class from the provided XML element by using the provided parameters.
Explicit interface implemetationPrivate method IXmlTestStore.Save Saves this object in the provided XML element.

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