IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
InProcessTestRunnerFactory handles creation of a suitable test runner for a given package to be loaded and run within the same process. More...
Public Member Functions | |
virtual ITestEngineRunner | MakeTestRunner (TestPackage package) |
Returns a test runner based on the settings in a TestPackage. Any setting that is "consumed" by the factory is removed, so that downstream runners using the factory will not repeatedly create the same type of runner. More... | |
virtual bool | CanReuse (ITestEngineRunner runner, TestPackage package) |
Return true if the provided runner is suitable for reuse in loading the test package provided. Otherwise, return false. Runners that cannot be reused must always return false. More... | |
![]() | |
virtual void | StartService () |
Initialize the Service More... | |
virtual void | StopService () |
Do any cleanup needed before terminating the service More... | |
void | Dispose () |
Additional Inherited Members | |
![]() | |
virtual void | Dispose (bool disposing) |
![]() | |
bool | _disposed = false |
![]() | |
IServiceLocator | ServiceContext [get, set] |
The ServiceContext More... | |
ServiceStatus | Status [get, protected set] |
Gets the ServiceStatus of this service More... | |
![]() | |
IServiceLocator | ServiceContext [get, set] |
The ServiceContext More... | |
ServiceStatus | Status [get] |
Gets the ServiceStatus of this service More... | |
InProcessTestRunnerFactory handles creation of a suitable test runner for a given package to be loaded and run within the same process.
|
inlinevirtual |
Returns a test runner based on the settings in a TestPackage. Any setting that is "consumed" by the factory is removed, so that downstream runners using the factory will not repeatedly create the same type of runner.
package | The TestPackage to be loaded and run |
Implements NUnit.Engine.ITestRunnerFactory.
Reimplemented in NUnit.Engine.Services.DefaultTestRunnerFactory.
References NUnit.Common.PackageSettings.DomainUsage, and NUnit.Engine.TestPackage.SubPackages.
Referenced by NUnit.Engine.Services.Tests.InProcessTestRunnerFactoryTests.CorrectRunnerIsUsed().
|
inlinevirtual |
Return true if the provided runner is suitable for reuse in loading the test package provided. Otherwise, return false. Runners that cannot be reused must always return false.
runner | An ITestRunner to possibly be used. |
package | The TestPackage to be loaded. |
Implements NUnit.Engine.ITestRunnerFactory.
Reimplemented in NUnit.Engine.Services.DefaultTestRunnerFactory.