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.Drivers.NUnit2FrameworkDriver Class Reference
+ Inheritance diagram for NUnit.Engine.Drivers.NUnit2FrameworkDriver:
+ Collaboration diagram for NUnit.Engine.Drivers.NUnit2FrameworkDriver:

Public Member Functions

 NUnit2FrameworkDriver (AppDomain testDomain)
 Create a new NUnit2FrameworkDriver More...
 
string Load (string testAssemblyPath, IDictionary< string, object > settings)
 Loads the tests in an assembly. More...
 
int CountTestCases (string filter)
 Count the test cases that would be executed. More...
 
string Run (ITestEventListener listener, string filter)
 Executes the tests in an assembly. More...
 
string Explore (string filter)
 Returns information about the tests in an assembly. More...
 
void StopRun (bool force)
 Cancel the ongoing test run. If no test is running, the call is ignored. More...
 

Properties

string ID [get, set]
 
string TestID [get]
 
- Properties inherited from NUnit.Engine.Extensibility.IFrameworkDriver
string ID [get, set]
 Gets and sets the unique identifier for this driver, used to ensure that test ids are unique across drivers. More...
 

Static Private Member Functions

static string Escape (string original)
 
static ITestFilter CreateNUnit2TestFilter (string filter)
 
static Core.TestFilter FromXml (XmlNode xmlNode)
 

Private Attributes

const string LOAD_RESULT_FORMAT
 
AppDomain _testDomain
 
string _testAssemblyPath
 
string _name
 
string _fullname
 
TestRunner _runner
 
Core.TestPackage _package
 

Static Private Attributes

static readonly char[] COMMA = { ',' }
 

Constructor & Destructor Documentation

NUnit.Engine.Drivers.NUnit2FrameworkDriver.NUnit2FrameworkDriver ( AppDomain  testDomain)
inline

Create a new NUnit2FrameworkDriver

Parameters
testDomainThe AppDomain to use for the runner

The framework assembly name is needed because this driver is used for both the nunit.framework 2.x and nunitlite 1.0.

Member Function Documentation

string NUnit.Engine.Drivers.NUnit2FrameworkDriver.Load ( string  testAssemblyPath,
IDictionary< string, object >  settings 
)
inline

Loads the tests in an assembly.

Returns
An Xml string representing the loaded test

Implements NUnit.Engine.Extensibility.IFrameworkDriver.

int NUnit.Engine.Drivers.NUnit2FrameworkDriver.CountTestCases ( string  filter)
inline

Count the test cases that would be executed.

Parameters
filterAn XML string representing the TestFilter to use in counting the tests
Returns
The number of test cases counted

Implements NUnit.Engine.Extensibility.IFrameworkDriver.

string NUnit.Engine.Drivers.NUnit2FrameworkDriver.Run ( ITestEventListener  listener,
string  filter 
)
inline

Executes the tests in an assembly.

Parameters
listenerAn ITestEventHandler that receives progress notices
filterA XML string representing the filter that controls which tests are executed
Returns
An Xml string representing the result

Implements NUnit.Engine.Extensibility.IFrameworkDriver.

string NUnit.Engine.Drivers.NUnit2FrameworkDriver.Explore ( string  filter)
inline

Returns information about the tests in an assembly.

Parameters
filterAn XML string representing the filter that controls which tests are included
Returns
An Xml string representing the tests

Implements NUnit.Engine.Extensibility.IFrameworkDriver.

void NUnit.Engine.Drivers.NUnit2FrameworkDriver.StopRun ( bool  force)
inline

Cancel the ongoing test run. If no test is running, the call is ignored.

Parameters
forceIf true, cancel any ongoing test threads, otherwise wait for them to complete.

Implements NUnit.Engine.Extensibility.IFrameworkDriver.

static string NUnit.Engine.Drivers.NUnit2FrameworkDriver.Escape ( string  original)
inlinestaticprivate
static ITestFilter NUnit.Engine.Drivers.NUnit2FrameworkDriver.CreateNUnit2TestFilter ( string  filter)
inlinestaticprivate
static Core.TestFilter NUnit.Engine.Drivers.NUnit2FrameworkDriver.FromXml ( XmlNode  xmlNode)
inlinestaticprivate

Member Data Documentation

const string NUnit.Engine.Drivers.NUnit2FrameworkDriver.LOAD_RESULT_FORMAT
private
Initial value:
=
"<test-suite type='Assembly' id='{0}' name='{1}' fullname='{2}' testcasecount='0' runstate='NotRunnable'>" +
"<properties>" +
"<property name='_SKIPREASON' value='{3}'/>" +
"</properties>" +
"</test-suite>"
AppDomain NUnit.Engine.Drivers.NUnit2FrameworkDriver._testDomain
private
string NUnit.Engine.Drivers.NUnit2FrameworkDriver._testAssemblyPath
private
string NUnit.Engine.Drivers.NUnit2FrameworkDriver._name
private
string NUnit.Engine.Drivers.NUnit2FrameworkDriver._fullname
private
TestRunner NUnit.Engine.Drivers.NUnit2FrameworkDriver._runner
private
Core.TestPackage NUnit.Engine.Drivers.NUnit2FrameworkDriver._package
private
readonly char [] NUnit.Engine.Drivers.NUnit2FrameworkDriver.COMMA = { ',' }
staticprivate

Property Documentation

string NUnit.Engine.Drivers.NUnit2FrameworkDriver.ID
getset
string NUnit.Engine.Drivers.NUnit2FrameworkDriver.TestID
getprivate

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