Share via


TestCategoryItemCollection Class

Definition

Represents a collection of strings that categorize a test.

public ref class TestCategoryItemCollection sealed : Microsoft::VisualStudio::TestTools::Common::EqtBaseCollection<Microsoft::VisualStudio::TestTools::Common::TestCategoryItem ^>
[System.Serializable]
public sealed class TestCategoryItemCollection : Microsoft.VisualStudio.TestTools.Common.EqtBaseCollection<Microsoft.VisualStudio.TestTools.Common.TestCategoryItem>
[<System.Serializable>]
type TestCategoryItemCollection = class
    inherit EqtBaseCollection<TestCategoryItem>
Public NotInheritable Class TestCategoryItemCollection
Inherits EqtBaseCollection(Of TestCategoryItem)
Inheritance
TestCategoryItemCollection
Attributes

Constructors

TestCategoryItemCollection()

Initializes a new instance of the TestCategoryItemCollection class.

TestCategoryItemCollection(String[])

Initializes a new instance of the TestCategoryItemCollection class by using the provided array of category names.

TestCategoryItemCollection(TestCategoryItemCollection)

Initializes a new instance of the TestCategoryItemCollection class by using the items in the provided collection.

Fields

m_container

Returns the hash table that contains the collection.

(Inherited from EqtBaseCollection<T>)

Properties

Count

Gets the number of items in the collection.

(Inherited from EqtBaseCollection<T>)
IsReadOnly

Gets a value that indicates whether the collection is read-only.

(Inherited from EqtBaseCollection<T>)

Methods

Add(String)

Adds the provided test category name to the collection.

Add(T)

Adds an item to the collection.

(Inherited from EqtBaseCollection<T>)
Add(TestCategoryItem)

Adds the provided test category item to the collection.

Clear()

Clears all items from the collection.

(Inherited from EqtBaseCollection<T>)
Clone()

Creates a copy of the collection.

(Inherited from EqtBaseCollection<T>)
Contains(T)

Returns a value that indicates whether the provided item is already in the collection.

(Inherited from EqtBaseCollection<T>)
CopyTo(T[], Int32)

Copies all items in the collection to the provided array, starting with the provided index.

(Inherited from EqtBaseCollection<T>)
Equals(Object)

Determines whether the provided object is equal to the current test category collection object.

GetEnumerator()

Returns an IEnumerator object for iterating through the collection.

(Inherited from EqtBaseCollection<T>)
GetHashCode()
Load(XmlElement, XmlTestStoreParameters)

Loads the current object from the provided XML element by using the provided parameters.

(Inherited from EqtBaseCollection<T>)
Remove(T)

Removes the provided item from the collection, if the item exists.

(Inherited from EqtBaseCollection<T>)
Save(XmlElement, XmlTestStoreParameters)

Saves the current object to the provided XML element using the provided parameters.

(Inherited from EqtBaseCollection<T>)
ToArray()

Returns this object as an array of the test category names.

ToString()

Returns the contents of this collection as a comma-delimited string of test category names.

Explicit Interface Implementations

IEnumerable<T>.GetEnumerator()

Returns a typed IEnumerator.

(Inherited from EqtBaseCollection<T>)

Extension Methods

EmptyIfNull<T>(IEnumerable<T>)

Return this enumeration in case it is not null. In case it is null return empty enumeration.

Applies to