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.OneTimeSetUpCommand Class Reference

OneTimeSetUpCommand runs any one-time setup methods for a suite, constructing the user test object if necessary. More...

+ Inheritance diagram for NUnit.Framework.Internal.Commands.OneTimeSetUpCommand:
+ Collaboration diagram for NUnit.Framework.Internal.Commands.OneTimeSetUpCommand:

Public Member Functions

 OneTimeSetUpCommand (TestSuite suite, List< SetUpTearDownItem > setUpTearDown, List< TestActionItem > actions)
 Constructs a OneTimeSetUpCommand for a suite More...
 
override TestResult Execute (TestExecutionContext context)
 Overridden to run the one-time setup for a suite. More...
 
- Public Member Functions inherited from NUnit.Framework.Internal.Commands.TestCommand
 TestCommand (Test test)
 Construct a TestCommand for a test. More...
 

Private Attributes

readonly TestSuite _suite
 
readonly ITypeInfo _typeInfo
 
readonly object[] _arguments
 
readonly List< SetUpTearDownItem_setUpTearDown
 
readonly List< TestActionItem_actions
 

Additional Inherited Members

- Properties inherited from NUnit.Framework.Internal.Commands.TestCommand
Test Test [get, private set]
 Gets the test associated with this command. More...
 

Detailed Description

OneTimeSetUpCommand runs any one-time setup methods for a suite, constructing the user test object if necessary.

Constructor & Destructor Documentation

NUnit.Framework.Internal.Commands.OneTimeSetUpCommand.OneTimeSetUpCommand ( TestSuite  suite,
List< SetUpTearDownItem setUpTearDown,
List< TestActionItem actions 
)
inline

Constructs a OneTimeSetUpCommand for a suite

Parameters
suiteThe suite to which the command applies
setUpTearDownA SetUpTearDownList for use by the command
actionsA List of TestActionItems to be run after Setup

References NUnit.Framework.Internal.TestSuite.Arguments, and NUnit.Framework.Internal.Test.TypeInfo.

Member Function Documentation

override TestResult NUnit.Framework.Internal.Commands.OneTimeSetUpCommand.Execute ( TestExecutionContext  context)
inlinevirtual

Overridden to run the one-time setup for a suite.

Parameters
contextThe TestExecutionContext to be used.
Returns
A TestResult

Implements NUnit.Framework.Internal.Commands.TestCommand.

References NUnit.Framework.Internal.TestExecutionContext.CurrentResult, and NUnit.Framework.Internal.TestExecutionContext.TestObject.

Member Data Documentation

readonly TestSuite NUnit.Framework.Internal.Commands.OneTimeSetUpCommand._suite
private
readonly ITypeInfo NUnit.Framework.Internal.Commands.OneTimeSetUpCommand._typeInfo
private
readonly object [] NUnit.Framework.Internal.Commands.OneTimeSetUpCommand._arguments
private
readonly List<SetUpTearDownItem> NUnit.Framework.Internal.Commands.OneTimeSetUpCommand._setUpTearDown
private
readonly List<TestActionItem> NUnit.Framework.Internal.Commands.OneTimeSetUpCommand._actions
private

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