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.Common.AssemblyHelper Class Reference

AssemblyHelper provides static methods for working with assemblies. More...

Static Public Member Functions

static string GetAssemblyPath (Type type)
 Gets the path from which the assembly defining a type was loaded. More...
 
static string GetAssemblyPath (Assembly assembly)
 Gets the path from which an assembly was loaded. More...
 
static string GetDirectoryName (Assembly assembly)
 Gets the path to the directory from which an assembly was loaded. More...
 
static AssemblyName GetAssemblyName (Assembly assembly)
 Gets the AssemblyName of an assembly. More...
 
static Assembly Load (string nameOrPath)
 Loads an assembly given a string, which may be the path to the assembly or the AssemblyName More...
 
static string GetAssemblyPathFromCodeBase (string codeBase)
 Gets the assembly path from code base. More...
 

Static Private Member Functions

static bool IsFileUri (string uri)
 

Detailed Description

AssemblyHelper provides static methods for working with assemblies.

Member Function Documentation

static string NUnit.Common.AssemblyHelper.GetAssemblyPath ( Type  type)
inlinestatic

Gets the path from which the assembly defining a type was loaded.

Parameters
typeThe Type.
Returns
The path.

Referenced by NUnit.Framework.Api.DefaultTestAssemblyBuilder.Build(), NUnit.Common.Tests.AssemblyHelperTests.GetPathForAssembly(), and NUnit.Common.Tests.AssemblyHelperTests.GetPathForType().

static string NUnit.Common.AssemblyHelper.GetAssemblyPath ( Assembly  assembly)
inlinestatic

Gets the path from which an assembly was loaded.

Parameters
assemblyThe assembly.
Returns
The path.
static string NUnit.Common.AssemblyHelper.GetDirectoryName ( Assembly  assembly)
inlinestatic

Gets the path to the directory from which an assembly was loaded.

Parameters
assemblyThe assembly.
Returns
The path.

Referenced by NUnit.Framework.Internal.TestExecutionContextTests.CanCreateObjectInAppDomain().

static AssemblyName NUnit.Common.AssemblyHelper.GetAssemblyName ( Assembly  assembly)
inlinestatic
static Assembly NUnit.Common.AssemblyHelper.Load ( string  nameOrPath)
inlinestatic

Loads an assembly given a string, which may be the path to the assembly or the AssemblyName

Parameters
nameOrPath
Returns

Referenced by NUnit.Framework.Api.DefaultTestAssemblyBuilder.Build(), and NUnitLite.TextRunner.Execute().

static bool NUnit.Common.AssemblyHelper.IsFileUri ( string  uri)
inlinestaticprivate
static string NUnit.Common.AssemblyHelper.GetAssemblyPathFromCodeBase ( string  codeBase)
inlinestatic

Gets the assembly path from code base.

Public for testing purposes

Parameters
codeBaseThe code base.
Returns

Referenced by NUnit.Common.Tests.AssemblyHelperTests.GetAssemblyPathFromCodeBase().


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