Share via


TestAndCategoryPair Class

Represents a match between a test and a test category that is used by the Test List Editor window of Visual Studio Test Professional.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.TestTools.Common.TestAndCategoryPair

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

Syntax

'Declaration
<SerializableAttribute> _
Public Class TestAndCategoryPair
[SerializableAttribute]
public class TestAndCategoryPair
[SerializableAttribute]
public ref class TestAndCategoryPair
[<SerializableAttribute>]
type TestAndCategoryPair =  class end
public class TestAndCategoryPair

The TestAndCategoryPair type exposes the following members.

Constructors

  Name Description
Public method TestAndCategoryPair(TestId, TestListCategoryId) Initializes a new instance of the TestAndCategoryPair class by using the provided test ID and category ID.
Public method TestAndCategoryPair(TestId, TestListCategoryId, Boolean, Boolean) Initializes a new instance of the TestAndCategoryPair class by using the provided test and category IDs and the indicator for a broken link.

Top

Properties

  Name Description
Public property CategoryId Gets the ID for the test category.
Public property Enabled Gets a value that indicates whether the link between the test and the category is enabled.
Public property IsBrokenLink Gets a value that indicates whether the link between the test and the category is broken.
Public property TestId Gets the ID for the test.

Top

Methods

  Name Description
Public method Equals Determines whether the provided instance is equal to this instance. (Overrides Object.Equals(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 that represents the current object. (Inherited from Object.)
Public methodStatic member ToTestId Infrastructure. Returns a TestId object by using the provided TestAndCategoryPair object.
Public methodStatic member ToTestListCategoryId Infrastructure. Returns a TestListCategoryId object by using the provided TestAndCategoryPair object.

Top

Operators

  Name Description
Public operatorStatic member Implicit(TestAndCategoryPair to TestId) Infrastructure. Represents an implicit operator when comparing a TestAndCategoryPair object with a TestId object.
Public operatorStatic member Implicit(TestAndCategoryPair to TestListCategoryId) Infrastructure. Represents an implicit operator when comparing a TestAndCategoryPair object with a TestListCategoryId 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