表示测试套件项的集合。
命名空间: 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 中包含的元素数。 (继承自 ICollection<ITestSuiteEntry>。) |
![]() |
IsReadOnly | 获取一个值,该值指示 ICollection 是否为只读。 (继承自 ICollection<ITestSuiteEntry>。) |
![]() |
Item | 获取或设置位于指定索引处的元素。 (继承自 IList<ITestSuiteEntry>。) |
![]() |
SyncRoot | 获取可用于同步对集合的访问的对象。 (继承自 ITestObjectCollection<TObjectInterface>。) |
页首
方法
名称 | 说明 | |
---|---|---|
![]() |
Add(ITestCase) | 向集合中添加测试用例。 |
![]() |
Add(ITestSuiteBase) | 向集合中添加测试套件。 |
![]() |
Add(UTP) | 将某项添加到 ICollection 中。 (继承自 ICollection<ITestSuiteEntry>。) |
![]() |
AddCases(IEnumerable<ITestCase>) | 向集合中添加测试用例的列表。 |
![]() |
AddCases(IEnumerable<ITestCase>, Boolean) | 添加测试用例列表,且可以选择忽略重复项。 |
![]() |
BulkCopy | 将测试项列表复制到提供的测试套件项集合,且可以选择忽略重复项。 |
![]() |
BulkMove(Int32, IEnumerable<ITestSuiteEntry>) | 将提供的测试套件项列表移动到此集合中的另一个位置。 |
![]() |
BulkMove(ITestSuiteEntryCollection, Int32, IEnumerable<ITestSuiteEntry>, Boolean) | 将提供的测试套件项列表移动到另一个测试套件项集合中的指定位置。 |
![]() |
Clear | 从 ICollection 中移除所有项。 (继承自 ICollection<ITestSuiteEntry>。) |
![]() |
Contains(ITestObject<Int32>) | 返回一个值,该值指示此集合是否包含指定的测试对象。 |
![]() |
Contains(UTP) | 确定 ICollection 是否包含特定值。 (继承自 ICollection<ITestSuiteEntry>。) |
![]() |
CopyTo | 从特定的 Array 索引开始,将 ICollection 的元素复制到一个 Array 中。 (继承自 ICollection<ITestSuiteEntry>。) |
![]() |
GetEnumerator | 返回一个循环访问集合的枚举器。 (继承自 IEnumerable<ITestSuiteEntry>。) |
![]() |
IndexOf(ITestObject<Int32>) | 返回该集合中提供对象的索引。 |
![]() |
IndexOf(UTP) | 确定 IList 中特定项的索引。 (继承自 IList<ITestSuiteEntry>。) |
![]() |
Insert(Int32, UTP) | 将一个项插入指定索引处的 IList。 (继承自 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(UTP) | 从 ICollection 中移除特定对象的第一个匹配项。 (继承自 ICollection<ITestSuiteEntry>。) |
![]() |
RemoveAt | 移除指定索引处的 IList 项。 (继承自 IList<ITestSuiteEntry>。) |
![]() |
RemoveCases | 从集合中移除提供的测试用例列表。 |
![]() |
RemoveEntries | 从集合中移除提供的测试套件项列表的每个项。 |
页首
事件
名称 | 说明 | |
---|---|---|
![]() |
CollectionChanged | 当集合更改时发生。 (继承自 INotifyCollectionChanged。) |
![]() |
PropertyChanged | 在属性值更改时发生。 (继承自 INotifyPropertyChanged。) |
页首
备注
在 Visual Studio 中,此接口支持测试用例管理 (TCM) 对象模型。 此接口预期并不用于您实现自定义类,但您可以在 TCM 对象返回内部实现时将此接口用于自定义类中。
请参阅
参考
Microsoft.TeamFoundation.TestManagement.Client 命名空间