ITimeoutTestAdapter.TestTimeout 方法
由代理程式進行呼叫,用以中止個別測試,而不是整個回合。會在測試逾期時進行呼叫。
命名空間: Microsoft.VisualStudio.TestTools.TestAdapter
組件: Microsoft.VisualStudio.QualityTools.ExecutionCommon (在 Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll 中)
語法
'宣告
Sub TestTimeout ( _
test As ITestElement _
)
void TestTimeout(
ITestElement test
)
void TestTimeout(
ITestElement^ test
)
abstract TestTimeout :
test:ITestElement -> unit
function TestTimeout(
test : ITestElement
)
參數
- test
型別:Microsoft.VisualStudio.TestTools.Common.ITestElement
要中止的測試。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。