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.ProjectLoaders.NUnitProject Class Reference
+ Inheritance diagram for NUnit.Engine.Services.ProjectLoaders.NUnitProject:
+ Collaboration diagram for NUnit.Engine.Services.ProjectLoaders.NUnitProject:

Public Member Functions

TestPackage GetTestPackage ()
 Gets a test package for the primary or active configuration within the project. The package includes all the assemblies and any settings specified in the project format. More...
 
TestPackage GetTestPackage (string configName)
 Gets a TestPackage for a specific configuration within the project. The package includes all the assemblies and any settings specified in the project format. More...
 
void Load (string filename)
 
void LoadXml (string xmlText)
 
string GetSetting (string name)
 
string GetSetting (string name, string defaultValue)
 
string GetProjectBasePath ()
 GetProjectBasePath uses the BasePath if present and otherwise defaults to the directory part of the ProjectPath. More...
 

Properties

string ProjectPath [get, private set]
 Gets the path to the file storing this project, if any. If the project has not been saved, this is null. More...
 
string ActiveConfigName [get]
 Gets the active configuration, as defined by the particular project. For an NUnit project, we use the activeConfig attribute if present and otherwise return the first config found. More...
 
IList< string > ConfigNames [get]
 
- Properties inherited from NUnit.Engine.Extensibility.IProject
string ProjectPath [get]
 Gets the path to the file storing this project, if any. If the project has not been saved, this is null. More...
 
string ActiveConfigName [get]
 Gets the active configuration, as defined by the particular project. More...
 
IList< string > ConfigNames [get]
 Gets a list of the configs for this project More...
 

Private Member Functions

XmlNode GetConfigNode (string name)
 
string GetBasePathForConfig (XmlNode configNode)
 
IDictionary< string, object > GetSettingsForConfig (XmlNode configNode)
 
string NormalizePath (string path)
 

Private Attributes

XmlDocument xmlDoc = new XmlDocument()
 The XmlDocument representing the loaded doc. It is generated from the text when the doc is loaded unless an exception is thrown. It is modified as the user makes changes. More...
 

Static Private Attributes

static readonly char[] PATH_SEPARATORS = new char[] { '/', '\\' }
 

Member Function Documentation

TestPackage NUnit.Engine.Services.ProjectLoaders.NUnitProject.GetTestPackage ( )
inline

Gets a test package for the primary or active configuration within the project. The package includes all the assemblies and any settings specified in the project format.

Returns
A TestPackage

Implements NUnit.Engine.Extensibility.IProject.

Referenced by NUnit.Engine.Services.ProjectLoaders.NUnitProjectLoader.GetTestPackage().

TestPackage NUnit.Engine.Services.ProjectLoaders.NUnitProject.GetTestPackage ( string  configName)
inline

Gets a TestPackage for a specific configuration within the project. The package includes all the assemblies and any settings specified in the project format.

Parameters
configNameThe name of the config to use
Returns
A TestPackage for the named configuration.

Implements NUnit.Engine.Extensibility.IProject.

void NUnit.Engine.Services.ProjectLoaders.NUnitProject.Load ( string  filename)
inline
void NUnit.Engine.Services.ProjectLoaders.NUnitProject.LoadXml ( string  xmlText)
inline
string NUnit.Engine.Services.ProjectLoaders.NUnitProject.GetSetting ( string  name)
inline
string NUnit.Engine.Services.ProjectLoaders.NUnitProject.GetSetting ( string  name,
string  defaultValue 
)
inline
XmlNode NUnit.Engine.Services.ProjectLoaders.NUnitProject.GetConfigNode ( string  name)
inlineprivate
string NUnit.Engine.Services.ProjectLoaders.NUnitProject.GetProjectBasePath ( )
inline

GetProjectBasePath uses the BasePath if present and otherwise defaults to the directory part of the ProjectPath.

string NUnit.Engine.Services.ProjectLoaders.NUnitProject.GetBasePathForConfig ( XmlNode  configNode)
inlineprivate
string NUnit.Engine.Services.ProjectLoaders.NUnitProject.NormalizePath ( string  path)
inlineprivate

Member Data Documentation

XmlDocument NUnit.Engine.Services.ProjectLoaders.NUnitProject.xmlDoc = new XmlDocument()
private

The XmlDocument representing the loaded doc. It is generated from the text when the doc is loaded unless an exception is thrown. It is modified as the user makes changes.

readonly char [] NUnit.Engine.Services.ProjectLoaders.NUnitProject.PATH_SEPARATORS = new char[] { '/', '\\' }
staticprivate

Property Documentation

string NUnit.Engine.Services.ProjectLoaders.NUnitProject.ProjectPath
getprivate set

Gets the path to the file storing this project, if any. If the project has not been saved, this is null.

string NUnit.Engine.Services.ProjectLoaders.NUnitProject.ActiveConfigName
get

Gets the active configuration, as defined by the particular project. For an NUnit project, we use the activeConfig attribute if present and otherwise return the first config found.

IList<string> NUnit.Engine.Services.ProjectLoaders.NUnitProject.ConfigNames
get

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