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

The TestEngine provides services that allow a client program to interact with NUnit in order to explore, load and run tests. More...

+ Inheritance diagram for NUnit.Engine.TestEngine:
+ Collaboration diagram for NUnit.Engine.TestEngine:

Public Member Functions

 TestEngine ()
 
void Initialize ()
 Initialize the engine. This includes initializing mono addins, setting the trace level and creating the standard set of services used in the Engine. More...
 
ITestRunner GetRunner (TestPackage package)
 Returns a test runner for use by clients that need to load the tests once and run them multiple times. If necessary, the services are initialized first. More...
 
void Dispose ()
 

Protected Member Functions

virtual void Dispose (bool disposing)
 

Properties

ServiceContext Services [get, private set]
 
string WorkDirectory [get, set]
 
InternalTraceLevel InternalTraceLevel [get, set]
 
IServiceLocator ITestEngine. Services [get]
 Access the public IServiceLocator, first initializing the services if that has not already been done. More...
 
- Properties inherited from NUnit.Engine.ITestEngine
IServiceLocator Services [get]
 Gets the IServiceLocator interface, which gives access to certain services provided by the engine. More...
 
string WorkDirectory [get, set]
 Gets and sets the directory path used by the engine for saving files. Some services may ignore changes to this path made after initialization. The default value is the current directory. More...
 
InternalTraceLevel InternalTraceLevel [get, set]
 Gets and sets the InternalTraceLevel used by the engine. Changing this setting after initialization will have no effect. The default value is the value saved in the NUnit settings. More...
 

Private Attributes

bool _disposed = false
 

Detailed Description

The TestEngine provides services that allow a client program to interact with NUnit in order to explore, load and run tests.

Constructor & Destructor Documentation

NUnit.Engine.TestEngine.TestEngine ( )
inline

Member Function Documentation

void NUnit.Engine.TestEngine.Initialize ( )
inline

Initialize the engine. This includes initializing mono addins, setting the trace level and creating the standard set of services used in the Engine.

This interface is not normally called by user code. Programs linking only to the nunit.engine.api assembly are given a pre-initialized instance of TestEngine. Programs that link directly to nunit.engine usually do so in order to perform custom initialization.

Implements NUnit.Engine.ITestEngine.

References NUnit.Engine.Internal.SettingsGroup.GetSetting().

Referenced by NUnit.Agent.NUnitTestAgent.Main().

ITestRunner NUnit.Engine.TestEngine.GetRunner ( TestPackage  package)
inline

Returns a test runner for use by clients that need to load the tests once and run them multiple times. If necessary, the services are initialized first.

Returns
An ITestRunner.

Implements NUnit.Engine.ITestEngine.

void NUnit.Engine.TestEngine.Dispose ( )
inline
virtual void NUnit.Engine.TestEngine.Dispose ( bool  disposing)
inlineprotectedvirtual

Member Data Documentation

bool NUnit.Engine.TestEngine._disposed = false
private

Property Documentation

ServiceContext NUnit.Engine.TestEngine.Services
getprivate set
string NUnit.Engine.TestEngine.WorkDirectory
getset
InternalTraceLevel NUnit.Engine.TestEngine.InternalTraceLevel
getset
IServiceLocator ITestEngine. NUnit.Engine.TestEngine.Services
getprivate

Access the public IServiceLocator, first initializing the services if that has not already been done.


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