Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 | |
|---|---|---|
| .gif) | TestAndCategoryPair(TestId, TestListCategoryId) | Initializes a new instance of the TestAndCategoryPair class by using the provided test ID and category ID. | 
| .gif) | 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 | |
|---|---|---|
| .gif) | CategoryId | Gets the ID for the test category. | 
| .gif) | Enabled | Gets a value that indicates whether the link between the test and the category is enabled. | 
| .gif) | IsBrokenLink | Gets a value that indicates whether the link between the test and the category is broken. | 
| .gif) | TestId | Gets the ID for the test. | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | Equals | Determines whether the provided instance is equal to this instance. (Overrides Object.Equals(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 a hash function for a particular type. (Overrides Object.GetHashCode.) | 
| .gif) | GetType | Gets the Type of the current instance. (Inherited from Object.) | 
| .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.) | 
| .gif) .gif) | ToTestId | Infrastructure. Returns a TestId object by using the provided TestAndCategoryPair object. | 
| .gif) .gif) | ToTestListCategoryId | Infrastructure. Returns a TestListCategoryId object by using the provided TestAndCategoryPair object. | 
Top
Operators
| Name | Description | |
|---|---|---|
| .gif) .gif) | Implicit(TestAndCategoryPair to TestId) | Infrastructure. Represents an implicit operator when comparing a TestAndCategoryPair object with a TestId object. | 
| .gif) .gif) | 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.