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.TestCommand Class Referenceabstract

TestCommand is the abstract base class for all test commands in the framework. A TestCommand represents a single stage in the execution of a test, e.g.: SetUp/TearDown, checking for Timeout, verifying the returned result from a method, etc. More...

+ Inheritance diagram for NUnit.Framework.Internal.Commands.TestCommand:

Public Member Functions

 TestCommand (Test test)
 Construct a TestCommand for a test. More...
 
abstract TestResult Execute (TestExecutionContext context)
 Runs the test in a specified context, returning a TestResult. More...
 

Properties

Test Test [get, private set]
 Gets the test associated with this command. More...
 

Detailed Description

TestCommand is the abstract base class for all test commands in the framework. A TestCommand represents a single stage in the execution of a test, e.g.: SetUp/TearDown, checking for Timeout, verifying the returned result from a method, etc.

TestCommands may decorate other test commands so that the execution of a lower-level command is nested within that of a higher level command. All nested commands are executed synchronously, as a single unit. Scheduling test execution on separate threads is handled at a higher level, using the task dispatcher.

Constructor & Destructor Documentation

NUnit.Framework.Internal.Commands.TestCommand.TestCommand ( Test  test)
inline

Construct a TestCommand for a test.

Parameters
testThe test to be executed

Member Function Documentation

Property Documentation

Test NUnit.Framework.Internal.Commands.TestCommand.Test
getprivate set

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