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.Internal.PathUtils Class Reference

Static methods for manipulating project paths, including both directories and files. Some synonyms for System.Path methods are included as well. More...

+ Inheritance diagram for NUnit.Engine.Internal.PathUtils:

Static Public Member Functions

static bool IsAssemblyFileType (string path)
 Returns a boolean indicating whether the specified path is that of an assembly - that is a dll or exe file. More...
 
static string RelativePath (string from, string to)
 Returns the relative path from a base directory to another directory or file. More...
 
static string Canonicalize (string path)
 Return the canonical form of a path. More...
 
static bool SamePathOrUnder (string path1, string path2)
 True if the two paths are the same or if the second is directly or indirectly under the first. Note that paths using different network shares or drive letters are considered unrelated, even if they end up referencing the same subtrees in the file system. More...
 
static string Combine (string path1, params string[] morePaths)
 Combines all the arguments into a single path More...
 

Public Attributes

const uint FILE_ATTRIBUTE_DIRECTORY = 0x00000010
 
const uint FILE_ATTRIBUTE_NORMAL = 0x00000080
 
const int MAX_PATH = 256
 

Static Protected Attributes

static char DirectorySeparatorChar = Path.DirectorySeparatorChar
 
static char AltDirectorySeparatorChar = Path.AltDirectorySeparatorChar
 

Static Private Member Functions

static bool IsWindows ()
 
static string[] SplitPath (string path)
 
static bool PathsEqual (string path1, string path2)
 

Detailed Description

Static methods for manipulating project paths, including both directories and files. Some synonyms for System.Path methods are included as well.

Member Function Documentation

static bool NUnit.Engine.Internal.PathUtils.IsAssemblyFileType ( string  path)
inlinestatic

Returns a boolean indicating whether the specified path is that of an assembly - that is a dll or exe file.

Parameters
pathPath to a file.
Returns
True if the file extension is dll or exe, otherwise false.

Referenced by NUnit.Engine.Services.DefaultTestRunnerFactory.MakeTestRunner(), and NUnit.Engine.Services.RuntimeFrameworkService.SelectRuntimeFramework().

static string NUnit.Engine.Internal.PathUtils.RelativePath ( string  from,
string  to 
)
inlinestatic
static string NUnit.Engine.Internal.PathUtils.Canonicalize ( string  path)
inlinestatic
static bool NUnit.Engine.Internal.PathUtils.SamePathOrUnder ( string  path1,
string  path2 
)
inlinestatic

True if the two paths are the same or if the second is directly or indirectly under the first. Note that paths using different network shares or drive letters are considered unrelated, even if they end up referencing the same subtrees in the file system.

Referenced by NUnit.Engine.Services.DomainManager.GetCommonAppBase().

static string NUnit.Engine.Internal.PathUtils.Combine ( string  path1,
params string[]  morePaths 
)
inlinestatic

Combines all the arguments into a single path

static bool NUnit.Engine.Internal.PathUtils.IsWindows ( )
inlinestaticprivate
static string [] NUnit.Engine.Internal.PathUtils.SplitPath ( string  path)
inlinestaticprivate
static bool NUnit.Engine.Internal.PathUtils.PathsEqual ( string  path1,
string  path2 
)
inlinestaticprivate

Member Data Documentation

const uint NUnit.Engine.Internal.PathUtils.FILE_ATTRIBUTE_DIRECTORY = 0x00000010
const uint NUnit.Engine.Internal.PathUtils.FILE_ATTRIBUTE_NORMAL = 0x00000080
const int NUnit.Engine.Internal.PathUtils.MAX_PATH = 256

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