IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
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...
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... | |
![]() | |
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 |
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.
|
inline |
Initializes a new instance of the TestAgent class.
agentId | The identifier of the agent. |
agency | The agency that this agent is associated with. |
services | The services available to the agent. |
|
pure virtual |
Starts the agent, performing any required initialization
true
if the agent was started successfully.Implements NUnit.Engine.ITestAgent.
Implemented in NUnit.Engine.Agents.RemoteTestAgent.
|
pure virtual |
Stops the agent, releasing any resources
Implements NUnit.Engine.ITestAgent.
Implemented in NUnit.Engine.Agents.RemoteTestAgent.
|
pure virtual |
Creates a test runner
Implements NUnit.Engine.ITestAgent.
Implemented in NUnit.Engine.Agents.RemoteTestAgent.
|
inline |
|
inlineprotectedvirtual |
Dispose is overridden to stop the agent
|
inline |
Overridden to cause object to live indefinitely
|
private |
|
private |
|
private |
|
private |
|
getprotected |
The services available to the agent
|
get |
Gets a reference to the TestAgency with which this agent is associated. Returns null if the agent is not connected to an agency.
|
get |
Gets a Guid that uniquely identifies this agent.