C# Class NUnit.Framework.Internal.Commands.SetUpTearDownItem

SetUpTearDownItem holds the setup and teardown methods for a single level of the inheritance hierarchy.
Show file Open project: nunit/nunit Class Usage Examples

Public Methods

Method Description
RunSetUp ( TestExecutionContext context ) : void

Run SetUp on this level.

RunTearDown ( TestExecutionContext context ) : void

Run TearDown for this level.

SetUpTearDownItem ( IList setUpMethods, IList tearDownMethods ) : System

Construct a SetUpTearDownNode

Private Methods

Method Description
RunAsyncMethod ( MethodInfo method, TestExecutionContext context ) : void
RunNonAsyncMethod ( MethodInfo method, TestExecutionContext context ) : object
RunSetUpOrTearDownMethod ( TestExecutionContext context, MethodInfo method ) : void

Method Details

RunSetUp() public method

Run SetUp on this level.
public RunSetUp ( TestExecutionContext context ) : void
context TestExecutionContext The execution context to use for running.
return void

RunTearDown() public method

Run TearDown for this level.
public RunTearDown ( TestExecutionContext context ) : void
context TestExecutionContext
return void

SetUpTearDownItem() public method

Construct a SetUpTearDownNode
public SetUpTearDownItem ( IList setUpMethods, IList tearDownMethods ) : System
setUpMethods IList A list of setup methods for this level
tearDownMethods IList A list teardown methods for this level
return System