IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
TestMethodCommand is the lowest level concrete command used to run actual test cases. More...
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... | |
![]() | |
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 | |
![]() | |
Test | Test [get, private set] |
Gets the test associated with this command. More... | |
TestMethodCommand is the lowest level concrete command used to run actual test cases.
|
inline |
Initializes a new instance of the TestMethodCommand class.
testMethod | The test. |
|
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.
context | The 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.
|
inlineprivate |
|
inlineprivate |
|
private |
|
private |