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.Agents.TestAgent Class Referenceabstract

Abstract base for all types of TestAgents. A TestAgent provides services of locating, loading and running tests in a particular context such as an AppDomain or Process. More...

+ Inheritance diagram for NUnit.Engine.Agents.TestAgent:
+ Collaboration diagram for NUnit.Engine.Agents.TestAgent:

Public Member Functions

 TestAgent (Guid agentId, ITestAgency agency, IServiceLocator services)
 Initializes a new instance of the TestAgent class. More...
 
abstract bool Start ()
 Starts the agent, performing any required initialization More...
 
abstract void Stop ()
 Stops the agent, releasing any resources More...
 
abstract ITestEngineRunner CreateRunner (TestPackage package)
 Creates a test runner More...
 
void Dispose ()
 
override object InitializeLifetimeService ()
 Overridden to cause object to live indefinitely More...
 

Protected Member Functions

virtual void Dispose (bool disposing)
 Dispose is overridden to stop the agent More...
 

Properties

IServiceLocator Services [get]
 The services available to the agent More...
 
ITestAgency Agency [get]
 Gets a reference to the TestAgency with which this agent is associated. Returns null if the agent is not connected to an agency. More...
 
Guid Id [get]
 Gets a Guid that uniquely identifies this agent. More...
 
- Properties inherited from NUnit.Engine.ITestAgent
ITestAgency Agency [get]
 Gets the agency with which this agent is associated. More...
 
Guid Id [get]
 Gets a Guid that uniquely identifies this agent. More...
 

Private Attributes

ITestAgency agency
 
Guid agentId
 
IServiceLocator services
 
bool _disposed = false
 

Detailed Description

Abstract base for all types of TestAgents. A TestAgent provides services of locating, loading and running tests in a particular context such as an AppDomain or Process.

Constructor & Destructor Documentation

NUnit.Engine.Agents.TestAgent.TestAgent ( Guid  agentId,
ITestAgency  agency,
IServiceLocator  services 
)
inline

Initializes a new instance of the TestAgent class.

Parameters
agentIdThe identifier of the agent.
agencyThe agency that this agent is associated with.
servicesThe services available to the agent.

Member Function Documentation

abstract bool NUnit.Engine.Agents.TestAgent.Start ( )
pure virtual

Starts the agent, performing any required initialization

Returns
true if the agent was started successfully.

Implements NUnit.Engine.ITestAgent.

Implemented in NUnit.Engine.Agents.RemoteTestAgent.

abstract void NUnit.Engine.Agents.TestAgent.Stop ( )
pure virtual

Stops the agent, releasing any resources

Implements NUnit.Engine.ITestAgent.

Implemented in NUnit.Engine.Agents.RemoteTestAgent.

abstract ITestEngineRunner NUnit.Engine.Agents.TestAgent.CreateRunner ( TestPackage  package)
pure virtual

Creates a test runner

Implements NUnit.Engine.ITestAgent.

Implemented in NUnit.Engine.Agents.RemoteTestAgent.

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

Dispose is overridden to stop the agent

override object NUnit.Engine.Agents.TestAgent.InitializeLifetimeService ( )
inline

Overridden to cause object to live indefinitely

Member Data Documentation

ITestAgency NUnit.Engine.Agents.TestAgent.agency
private
Guid NUnit.Engine.Agents.TestAgent.agentId
private
IServiceLocator NUnit.Engine.Agents.TestAgent.services
private
bool NUnit.Engine.Agents.TestAgent._disposed = false
private

Property Documentation

IServiceLocator NUnit.Engine.Agents.TestAgent.Services
getprotected

The services available to the agent

ITestAgency NUnit.Engine.Agents.TestAgent.Agency
get

Gets a reference to the TestAgency with which this agent is associated. Returns null if the agent is not connected to an agency.

Guid NUnit.Engine.Agents.TestAgent.Id
get

Gets a Guid that uniquely identifies this agent.


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