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.Engine.Services.InProcessTestRunnerFactory Class Reference

InProcessTestRunnerFactory handles creation of a suitable test runner for a given package to be loaded and run within the same process. More...

+ Inheritance diagram for NUnit.Engine.Services.InProcessTestRunnerFactory:
+ Collaboration diagram for NUnit.Engine.Services.InProcessTestRunnerFactory:

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...
 
- Public Member Functions inherited from NUnit.Engine.Services.Service
virtual void StartService ()
 Initialize the Service More...
 
virtual void StopService ()
 Do any cleanup needed before terminating the service More...
 
void Dispose ()
 

Additional Inherited Members

- Protected Member Functions inherited from NUnit.Engine.Services.Service
virtual void Dispose (bool disposing)
 
- Protected Attributes inherited from NUnit.Engine.Services.Service
bool _disposed = false
 
- Properties inherited from NUnit.Engine.Services.Service
IServiceLocator ServiceContext [get, set]
 The ServiceContext More...
 
ServiceStatus Status [get, protected set]
 Gets the ServiceStatus of this service More...
 
- Properties inherited from NUnit.Engine.IService
IServiceLocator ServiceContext [get, set]
 The ServiceContext More...
 
ServiceStatus Status [get]
 Gets the ServiceStatus of this service More...
 

Detailed Description

InProcessTestRunnerFactory handles creation of a suitable test runner for a given package to be loaded and run within the same process.

Member Function Documentation

virtual ITestEngineRunner NUnit.Engine.Services.InProcessTestRunnerFactory.MakeTestRunner ( TestPackage  package)
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.

Parameters
packageThe TestPackage to be loaded and run
Returns
An ITestEngineRunner

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().

virtual bool NUnit.Engine.Services.InProcessTestRunnerFactory.CanReuse ( ITestEngineRunner  runner,
TestPackage  package 
)
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.

Parameters
runnerAn ITestRunner to possibly be used.
packageThe TestPackage to be loaded.
Returns
True if the runner may be reused for the provided package.

Implements NUnit.Engine.ITestRunnerFactory.

Reimplemented in NUnit.Engine.Services.DefaultTestRunnerFactory.


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