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

TestMethodCommand is the lowest level concrete command used to run actual test cases. More...

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

Public Member Functions

 TestMethodCommand (TestMethod testMethod)
 Initializes a new instance of the TestMethodCommand class. More...
 
override TestResult Execute (TestExecutionContext context)
 Runs the test, saving a TestResult in the execution context, as well as returning it. If the test has an expected result, it is asserts on that value. Since failed tests and errors throw an exception, this command must be wrapped in an outer command, will handle that exception and records the failure. This role is usually played by the SetUpTearDown command. More...
 
- Public Member Functions inherited from NUnit.Framework.Internal.Commands.TestCommand
 TestCommand (Test test)
 Construct a TestCommand for a test. More...
 

Private Member Functions

object RunTestMethod (TestExecutionContext context)
 
object RunNonAsyncTestMethod (TestExecutionContext context)
 

Private Attributes

readonly TestMethod testMethod
 
readonly object[] arguments
 

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

TestMethodCommand is the lowest level concrete command used to run actual test cases.

Constructor & Destructor Documentation

NUnit.Framework.Internal.Commands.TestMethodCommand.TestMethodCommand ( TestMethod  testMethod)
inline

Initializes a new instance of the TestMethodCommand class.

Parameters
testMethodThe test.

Member Function Documentation

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

Runs the test, saving a TestResult in the execution context, as well as returning it. If the test has an expected result, it is asserts on that value. Since failed tests and errors throw an exception, this command must be wrapped in an outer command, will handle that exception and records the failure. This role is usually played by the SetUpTearDown command.

Parameters
contextThe execution context

Implements NUnit.Framework.Internal.Commands.TestCommand.

References NUnit.Framework.Assert.AreEqual(), NUnit.Framework.Internal.TestExecutionContext.CurrentResult, NUnit.Framework.Internal.TestResult.SetResult(), and NUnit.Framework.Interfaces.ResultState.Success.

object NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod ( TestExecutionContext  context)
inlineprivate
object NUnit.Framework.Internal.Commands.TestMethodCommand.RunNonAsyncTestMethod ( TestExecutionContext  context)
inlineprivate

Member Data Documentation

readonly TestMethod NUnit.Framework.Internal.Commands.TestMethodCommand.testMethod
private
readonly object [] NUnit.Framework.Internal.Commands.TestMethodCommand.arguments
private

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