IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
NUnit.Framework.Internal.Commands.SetUpTearDownItem Class Reference

SetUpTearDownItem holds the setup and teardown methods for a single level of the inheritance hierarchy. More...

Public Member Functions

 SetUpTearDownItem (IList< MethodInfo > setUpMethods, IList< MethodInfo > tearDownMethods)
 Construct a SetUpTearDownNode More...
 
void RunSetUp (TestExecutionContext context)
 Run SetUp on this level. More...
 
void RunTearDown (TestExecutionContext context)
 Run TearDown for this level. More...
 

Properties

bool HasMethods [get]
 Returns true if this level has any methods at all. This flag is used to discard levels that do nothing. More...
 

Private Member Functions

void RunSetUpOrTearDownMethod (TestExecutionContext context, MethodInfo method)
 
object RunNonAsyncMethod (MethodInfo method, TestExecutionContext context)
 

Private Attributes

IList< MethodInfo > _setUpMethods
 
IList< MethodInfo > _tearDownMethods
 
bool _setUpWasRun
 

Detailed Description

SetUpTearDownItem holds the setup and teardown methods for a single level of the inheritance hierarchy.

Constructor & Destructor Documentation

NUnit.Framework.Internal.Commands.SetUpTearDownItem.SetUpTearDownItem ( IList< MethodInfo >  setUpMethods,
IList< MethodInfo >  tearDownMethods 
)
inline

Construct a SetUpTearDownNode

Parameters
setUpMethodsA list of setup methods for this level
tearDownMethodsA list teardown methods for this level

Member Function Documentation

void NUnit.Framework.Internal.Commands.SetUpTearDownItem.RunSetUp ( TestExecutionContext  context)
inline

Run SetUp on this level.

Parameters
contextThe execution context to use for running.
void NUnit.Framework.Internal.Commands.SetUpTearDownItem.RunTearDown ( TestExecutionContext  context)
inline
void NUnit.Framework.Internal.Commands.SetUpTearDownItem.RunSetUpOrTearDownMethod ( TestExecutionContext  context,
MethodInfo  method 
)
inlineprivate
object NUnit.Framework.Internal.Commands.SetUpTearDownItem.RunNonAsyncMethod ( MethodInfo  method,
TestExecutionContext  context 
)
inlineprivate

Member Data Documentation

IList<MethodInfo> NUnit.Framework.Internal.Commands.SetUpTearDownItem._setUpMethods
private
IList<MethodInfo> NUnit.Framework.Internal.Commands.SetUpTearDownItem._tearDownMethods
private
bool NUnit.Framework.Internal.Commands.SetUpTearDownItem._setUpWasRun
private

Property Documentation

bool NUnit.Framework.Internal.Commands.SetUpTearDownItem.HasMethods
get

Returns true if this level has any methods at all. This flag is used to discard levels that do nothing.


The documentation for this class was generated from the following file: