Share via


TestCategoryItem Class

Definition

Represents a category for a test.

public ref class TestCategoryItem sealed : Microsoft::VisualStudio::TestTools::Common::IPersistable, Microsoft::VisualStudio::TestTools::Common::Xml::IXmlTestStore
[System.Serializable]
public sealed class TestCategoryItem : Microsoft.VisualStudio.TestTools.Common.IPersistable, Microsoft.VisualStudio.TestTools.Common.Xml.IXmlTestStore
[<System.Serializable>]
type TestCategoryItem = class
    interface IPersistable
    interface IXmlTestStore
Public NotInheritable Class TestCategoryItem
Implements IPersistable, IXmlTestStore
Inheritance
TestCategoryItem
Attributes
Implements

Constructors

TestCategoryItem(String)

Initializes a new instance of the TestCategoryItem class by using the provided category name.

Properties

TestCategory

Represents the name of the category.

Methods

Equals(Object)

Determines whether another object is equal to the current instance.

GetHashCode()

Serves as a hash function for the TestCategoryItem class.

Load(XmlElement, XmlTestStoreParameters)

Loads XML data to reconstitute a persisted instance of the TestCategoryItem class.

PrepareToPersist()

For this class, this method does nothing.

RecoverFromPersistence()

Verifies the validity of the instance after it reloads from persistence.

Save(XmlElement, XmlTestStoreParameters)

Saves or persists the current instance as an XML element in the XML store.

ToString()

Returns the category name.

Applies to