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 | |
---|---|---|
TestId() | Initializes a new instance of the TestId class. | |
TestId(Guid) | Initializes a new instance of the TestId class by using the provided GUID. |
Top
Properties
Name | Description | |
---|---|---|
Empty | Gets an empty GUID. | |
Id | Gets the test GUID. |
Top
Methods
Name | Description | |
---|---|---|
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. | |
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. | |
Equals(Object) | Returns a value that indicates whether a provided object is equal to the current object. (Overrides Object.Equals(Object).) | |
Equals(TestId) | Returns a value that indicates whether a provided test ID is equal to the current object. | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Overrides Object.GetHashCode().) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string representation of this test ID object. (Overrides Object.ToString().) |
Top
Operators
Name | Description | |
---|---|---|
Equality | Represents an equality operator (=) that is used to determine whether the provided objects are equal. | |
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. | |
Inequality | Represents an inequality operator (!=) that is used to determine whether the provided objects are not equal. | |
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 | |
---|---|---|
IXmlTestStore.Load | Loads an instance of this class from the provided XML element by using the provided parameters. | |
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.