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.Execution.CommandBuilder Class Reference

A utility class to create TestCommands More...

Static Public Member Functions

static TestCommand MakeOneTimeSetUpCommand (TestSuite suite, List< SetUpTearDownItem > setUpTearDown, List< TestActionItem > actions)
 Gets the command to be executed before any of the child tests are run. More...
 
static TestCommand MakeOneTimeTearDownCommand (TestSuite suite, List< SetUpTearDownItem > setUpTearDownItems, List< TestActionItem > actions)
 Gets the command to be executed after all of the child tests are run. More...
 
static TestCommand MakeTestCommand (TestMethod test)
 Creates a test command for use in running this test. More...
 
static SkipCommand MakeSkipCommand (Test test)
 Creates a command for skipping a test. The result returned will depend on the test RunState. More...
 
static List< SetUpTearDownItemBuildSetUpTearDownList (Type fixtureType, Type setUpType, Type tearDownType)
 Builds the set up tear down list. More...
 

Static Private Member Functions

static SetUpTearDownItem BuildNode (Type fixtureType, IList< MethodInfo > setUpMethods, IList< MethodInfo > tearDownMethods)
 
static List< MethodInfo > SelectMethodsByDeclaringType (Type type, IList< MethodInfo > methods)
 

Detailed Description

A utility class to create TestCommands

Member Function Documentation

static TestCommand NUnit.Framework.Internal.Execution.CommandBuilder.MakeOneTimeSetUpCommand ( TestSuite  suite,
List< SetUpTearDownItem setUpTearDown,
List< TestActionItem actions 
)
inlinestatic
static TestCommand NUnit.Framework.Internal.Execution.CommandBuilder.MakeOneTimeTearDownCommand ( TestSuite  suite,
List< SetUpTearDownItem setUpTearDownItems,
List< TestActionItem actions 
)
inlinestatic

Gets the command to be executed after all of the child tests are run.

Returns
A TestCommand

References NUnit.Framework.Internal.Test.TestType.

Referenced by NUnit.Framework.Internal.Execution.CompositeWorkItem.InitializeSetUpAndTearDownCommands().

static TestCommand NUnit.Framework.Internal.Execution.CommandBuilder.MakeTestCommand ( TestMethod  test)
inlinestatic

Creates a test command for use in running this test.

Returns

References NUnit.Framework.Interfaces.ICommandWrapper.Wrap().

Referenced by NUnit.Framework.Internal.Execution.SimpleWorkItem.SimpleWorkItem().

static SkipCommand NUnit.Framework.Internal.Execution.CommandBuilder.MakeSkipCommand ( Test  test)
inlinestatic

Creates a command for skipping a test. The result returned will depend on the test RunState.

Referenced by NUnit.Framework.Internal.Execution.SimpleWorkItem.SimpleWorkItem().

static List<SetUpTearDownItem> NUnit.Framework.Internal.Execution.CommandBuilder.BuildSetUpTearDownList ( Type  fixtureType,
Type  setUpType,
Type  tearDownType 
)
inlinestatic

Builds the set up tear down list.

Parameters
fixtureTypeType of the fixture.
setUpTypeType of the set up attribute.
tearDownTypeType of the tear down attribute.
Returns
A list of SetUpTearDownItems

References NUnit.Framework.Internal.Reflect.GetMethodsWithAttribute().

Referenced by NUnit.Framework.Internal.Execution.CompositeWorkItem.InitializeSetUpAndTearDownCommands(), and NUnit.Framework.Internal.Commands.SetUpTearDownCommand.SetUpTearDownCommand().

static SetUpTearDownItem NUnit.Framework.Internal.Execution.CommandBuilder.BuildNode ( Type  fixtureType,
IList< MethodInfo >  setUpMethods,
IList< MethodInfo >  tearDownMethods 
)
inlinestaticprivate
static List<MethodInfo> NUnit.Framework.Internal.Execution.CommandBuilder.SelectMethodsByDeclaringType ( Type  type,
IList< MethodInfo >  methods 
)
inlinestaticprivate

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