Share via


TestCategoryItem Class

Represents a category for a test.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.TestTools.Common.TestCategoryItem

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

Syntax

'Declaration
<SerializableAttribute> _
Public NotInheritable Class TestCategoryItem _
    Implements IPersistable, IXmlTestStore
[SerializableAttribute]
public sealed class TestCategoryItem : IPersistable, 
    IXmlTestStore
[SerializableAttribute]
public ref class TestCategoryItem sealed : IPersistable, 
    IXmlTestStore
[<Sealed>]
[<SerializableAttribute>]
type TestCategoryItem =  
    class 
        interface IPersistable 
        interface IXmlTestStore 
    end
public final class TestCategoryItem implements IPersistable, IXmlTestStore

The TestCategoryItem type exposes the following members.

Constructors

  Name Description
Public method TestCategoryItem Initializes a new instance of the TestCategoryItem class by using the provided category name.

Top

Properties

  Name Description
Public property TestCategory Represents the name of the category.

Top

Methods

  Name Description
Public method Equals Determines whether another object is equal to the current instance. (Overrides Object.Equals(Object).)
Public method GetHashCode Serves as a hash function for the TestCategoryItem class. (Overrides Object.GetHashCode.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Load Loads XML data to reconstitute a persisted instance of the TestCategoryItem class.
Public method PrepareToPersist For this class, this method does nothing.
Public method RecoverFromPersistence Verifies the validity of the instance after it reloads from persistence.
Public method Save Saves or persists the current instance as an XML element in the XML store.
Public method ToString Returns the category name. (Overrides Object.ToString.)

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