ITestExecutionPlugin.BeforeTestStarted Yöntem

Tanım

Bu yöntem bir test başlamadan önce çağrılır.

public:
 bool BeforeTestStarted(Microsoft::VisualStudio::TestTools::Execution::IDataCollectionRunContext ^ runContext, Microsoft::VisualStudio::TestTools::Common::TestExecId ^ id);
public bool BeforeTestStarted (Microsoft.VisualStudio.TestTools.Execution.IDataCollectionRunContext runContext, Microsoft.VisualStudio.TestTools.Common.TestExecId id);
abstract member BeforeTestStarted : Microsoft.VisualStudio.TestTools.Execution.IDataCollectionRunContext * Microsoft.VisualStudio.TestTools.Common.TestExecId -> bool
Public Function BeforeTestStarted (runContext As IDataCollectionRunContext, id As TestExecId) As Boolean

Parametreler

runContext
IDataCollectionRunContext

IDataCollectionRunContextTestin bağlamını temsil eden nesne.

id
TestExecId

Test KIMLIĞI.

Döndürülenler

Boolean

aracının testi çalıştırmaya devam etmesi gerekiyorsa true; aracının testi çalıştırması gerekiyorsa false. Not false döndürüldüğünde, aracı eklentinin bu test için bir test hatası raporladığını ve bir sonuç kaydetmez olduğunu varsayar. False döndürüldüğünde bile eklenti TestEnd Bu test için bir olay oluşturacak.

Şunlara uygulanır