共用方式為


TestRun.CountTestCases 方法

傳回此回合及所有彙總測試中包含之測試案例的數目。

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

語法

'宣告
Public Function CountTestCases As Integer
public int CountTestCases()
public:
int CountTestCases()
member CountTestCases : unit -> int 
public function CountTestCases() : int

傳回值

型別:System.Int32
在此回合中的測試案例數目。

.NET Framework 安全性

請參閱

參考

TestRun 類別

Microsoft.VisualStudio.TestTools.Common 命名空間