TestCategoryBaseAttribute Class
Provides a base class for the Category attribute.
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
System::Attribute
Microsoft.VisualStudio.TestTools.UnitTesting::TestCategoryBaseAttribute
Microsoft.VisualStudio.TestTools.UnitTesting::TestCategoryAttribute
| Name | Description | |
|---|---|---|
![]() | TestCategoryBaseAttribute() | Initializes a new instance of the TestCategoryBaseAttribute class. |
| Name | Description | |
|---|---|---|
![]() | TestCategories | Gets the test category that has been applied to the test. |
![]() | TypeId | (Inherited from Attribute.) |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | (Inherited from Attribute.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Attribute.) |
![]() | GetType() | (Inherited from Object.) |
![]() | IsDefaultAttribute() | (Inherited from Attribute.) |
![]() | Match(Object^) | (Inherited from Attribute.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | ToString() | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | _Attribute::GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) | (Inherited from Attribute.) |
![]() ![]() | _Attribute::GetTypeInfo(UInt32, UInt32, IntPtr) | (Inherited from Attribute.) |
![]() ![]() | _Attribute::GetTypeInfoCount(UInt32) | (Inherited from Attribute.) |
![]() ![]() | _Attribute::Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) | (Inherited from Attribute.) |
The purpose for this attribute is to let users create their own implementation of test categories. The TestCategories property is a collection instead of a string so that it gives more flexibility to the user. For example, the implementation may be based on enumerations. These values can be combined by using the bitwise OR operation, in which case it makes sense to have a single attribute instead of multiple ones on the same test.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.




