C# 클래스 TestAutomationEssentials.MSTest.ExecutionContext.TestExecutionScopesManager

Managed nestable scopes of isolation. Upon exit from each scope, it calls the cleanup actions that were registered to it during its lifetime
If you're using MSTest, you should probably use TestBase instead of using this class directly.
상속: IIsolationScope
파일 보기 프로젝트 열기: arnonax/TestEssentials 1 사용 예제들

공개 메소드들

메소드 설명
AddCleanupAction ( System.Action action ) : void

Adds a delegate to an action that will be executed on cleanup

BeginIsolationScope ( string isolationScopeName ) : IDisposable

Begins a new, nested, isolation scope

BeginIsolationScope ( string isolationScopeName, Action initialize ) : IDisposable

Begins a new, nested, isolation scope

EndIsolationScope ( ) : void

Ends the current isolation scope, calling all cleanup actions that were added to this scope in reverse order

TestExecutionScopesManager ( string name, Action initialize ) : System

Initializes a new TestExecutionScopesManager object, with one (default) isolation scope

비공개 메소드들

메소드 설명
CleanupCurrentLevel ( ) : void

메소드 상세

AddCleanupAction() 공개 메소드

Adds a delegate to an action that will be executed on cleanup
public AddCleanupAction ( System.Action action ) : void
action System.Action A delegate to the action to perform
리턴 void

BeginIsolationScope() 공개 메소드

Begins a new, nested, isolation scope
public BeginIsolationScope ( string isolationScopeName ) : IDisposable
isolationScopeName string The name of the new isolation scope
리턴 IDisposable

BeginIsolationScope() 공개 메소드

Begins a new, nested, isolation scope
public BeginIsolationScope ( string isolationScopeName, Action initialize ) : IDisposable
isolationScopeName string The name of the new isolation scope
initialize Action A delegate to an action that is performed on initialization. If an exception occurs inside this /// method, then the scope is automatically destroyed, calling any cleanup actions that were added during this method
리턴 IDisposable

EndIsolationScope() 공개 메소드

Ends the current isolation scope, calling all cleanup actions that were added to this scope in reverse order
public EndIsolationScope ( ) : void
리턴 void

TestExecutionScopesManager() 공개 메소드

Initializes a new TestExecutionScopesManager object, with one (default) isolation scope
public TestExecutionScopesManager ( string name, Action initialize ) : System
name string The name of the isolation scope
initialize Action A delegate to an action that is performed on initialization. If an exception occurs inside this /// method, then the scope is automatically destroyed, calling any cleanup actions that were added during this method
리턴 System