共用方式為


ITestList.GetTests 方法

擷取目前清單中測試的陣列。

命名空間:  Microsoft.VisualStudio.TestTools.Common
組件:  Microsoft.VisualStudio.QualityTools.Common (在 Microsoft.VisualStudio.QualityTools.Common.dll 中)

語法

'宣告
Function GetTests As ITestElement()
ITestElement[] GetTests()
array<ITestElement^>^ GetTests()
abstract GetTests : unit -> ITestElement[] 
function GetTests() : ITestElement[]

傳回值

型別:array<Microsoft.VisualStudio.TestTools.Common.ITestElement[]
ITestList 物件的陣列。

.NET Framework 安全性

請參閱

參考

ITestList 介面

Microsoft.VisualStudio.TestTools.Common 命名空間

GetMissingTests