ITestSuiteEntryCollection 接口

表示测试套件项的集合。

命名空间:  Microsoft.TeamFoundation.TestManagement.Client
程序集:  Microsoft.TeamFoundation.TestManagement.Client(在 Microsoft.TeamFoundation.TestManagement.Client.dll 中)

语法

声明
Public Interface ITestSuiteEntryCollection _
    Inherits ITestObjectCollection(Of ITestSuiteEntry), IList(Of ITestSuiteEntry),  _
    ICollection(Of ITestSuiteEntry), IEnumerable(Of ITestSuiteEntry), IEnumerable,  _
    INotifyCollectionChanged, INotifyPropertyChanged
public interface ITestSuiteEntryCollection : ITestObjectCollection<ITestSuiteEntry>, 
    IList<ITestSuiteEntry>, ICollection<ITestSuiteEntry>, IEnumerable<ITestSuiteEntry>, 
    IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
public interface class ITestSuiteEntryCollection : ITestObjectCollection<ITestSuiteEntry^>, 
    IList<ITestSuiteEntry^>, ICollection<ITestSuiteEntry^>, IEnumerable<ITestSuiteEntry^>, 
    IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
type ITestSuiteEntryCollection =  
    interface
        interface ITestObjectCollection<ITestSuiteEntry>
        interface IList<ITestSuiteEntry>
        interface ICollection<ITestSuiteEntry>
        interface IEnumerable<ITestSuiteEntry>
        interface IEnumerable
        interface INotifyCollectionChanged
        interface INotifyPropertyChanged
    end
public interface ITestSuiteEntryCollection extends ITestObjectCollection<ITestSuiteEntry>, IList<ITestSuiteEntry>, ICollection<ITestSuiteEntry>, IEnumerable<ITestSuiteEntry>, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged

ITestSuiteEntryCollection 类型公开以下成员。

属性

  名称 说明
公共属性 Count 获取 ICollection<T> 中包含的元素数。 (继承自 ICollection<ITestSuiteEntry>。)
公共属性 IsReadOnly 获取一个值,该值指示 ICollection<T> 是否为只读。 (继承自 ICollection<ITestSuiteEntry>。)
公共属性 Item 获取或设置位于指定索引处的元素。 (继承自 IList<ITestSuiteEntry>。)
公共属性 SyncRoot 获取可用于同步对集合的访问的对象。 (继承自 ITestObjectCollection<TObjectInterface>。)

页首

方法

  名称 说明
公共方法 Add(ITestCase) 向集合中添加测试用例。
公共方法 Add(ITestSuiteBase) 向集合中添加测试套件。
公共方法 Add(T) 将某项添加到 ICollection<T> 中。 (继承自 ICollection<ITestSuiteEntry>。)
公共方法 AddCases(IEnumerable<ITestCase>) 向集合中添加测试用例的列表。
公共方法 AddCases(IEnumerable<ITestCase>, Boolean) 添加测试用例列表,且可以选择忽略重复项。
公共方法 BulkCopy 将测试项列表复制到提供的测试套件项集合,且可以选择忽略重复项。
公共方法 BulkMove(Int32, IEnumerable<ITestSuiteEntry>) 将提供的测试套件项列表移动到此集合中的另一个位置。
公共方法 BulkMove(ITestSuiteEntryCollection, Int32, IEnumerable<ITestSuiteEntry>, Boolean) 将提供的测试套件项列表移动到另一个测试套件项集合中的指定位置。
公共方法 Clear ICollection<T> 中移除所有项。 (继承自 ICollection<ITestSuiteEntry>。)
公共方法 Contains(ITestObject<Int32>) 返回一个值,该值指示此集合是否包含指定的测试对象。
公共方法 Contains(T) 确定 ICollection<T> 是否包含特定值。 (继承自 ICollection<ITestSuiteEntry>。)
公共方法 CopyTo 从特定的 Array 索引开始,将 ICollection<T> 的元素复制到一个 Array 中。 (继承自 ICollection<ITestSuiteEntry>。)
公共方法 GetEnumerator 返回一个循环访问集合的枚举器。 (继承自 IEnumerable<ITestSuiteEntry>。)
公共方法 IndexOf(ITestObject<Int32>) 返回该集合中提供对象的索引。
公共方法 IndexOf(T) 确定 IList<T> 中特定项的索引。 (继承自 IList<ITestSuiteEntry>。)
公共方法 Insert(Int32, T) 将一个项插入指定索引处的 IList<T>。 (继承自 IList<ITestSuiteEntry>。)
公共方法 Insert(Int32, ITestCase) 将提供的测试用例插入到集合中的指定索引处。
公共方法 Insert(Int32, ITestSuiteBase) 将提供的测试套件插入到集合中的指定索引处。
公共方法 InsertCases(Int32, IEnumerable<ITestCase>) 将提供的测试用例列表插入到集合中的指定位置。
公共方法 InsertCases(Int32, IEnumerable<ITestCase>, Boolean) 将提供的测试用例列表插入到集合中的指定索引处,且可以选择忽略重复项。
公共方法 Move 将集合的项从一个位置移到另一个位置。 (继承自 ITestObjectCollection<TObjectInterface>。)
公共方法 Remove(ITestCase) 从集合中移除提供的测试用例。
公共方法 Remove(ITestSuiteBase) 从集合中移除提供的测试套件。
公共方法 Remove(T) ICollection<T> 中移除特定对象的第一个匹配项。 (继承自 ICollection<ITestSuiteEntry>。)
公共方法 RemoveAt 移除指定索引处的 IList<T> 项。 (继承自 IList<ITestSuiteEntry>。)
公共方法 RemoveCases 从集合中移除提供的测试用例列表。
公共方法 RemoveEntries 从集合中移除提供的测试套件项列表的每个项。

页首

事件

  名称 说明
公共事件 CollectionChanged 当集合更改时发生。 (继承自 INotifyCollectionChanged。)
公共事件 PropertyChanged 在更改属性值时发生。 (继承自 INotifyPropertyChanged。)

页首

备注

在 Visual Studio 中,此接口支持测试用例管理 (TCM) 对象模型。此接口预期并不用于您实现自定义类,但您可以在 TCM 对象返回内部实现时将此接口用于自定义类中。

请参见

参考

Microsoft.TeamFoundation.TestManagement.Client 命名空间

ITestObjectCollection<TObjectInterface>

ITestSuiteEntry

INotifyCollectionChanged

INotifyPropertyChanged