TestEngineActivator creates an instance of the test engine and returns an ITestEngine interface.
More...
|
static Assembly | FindNewestEngine (Version minVersion, bool privateCopy) |
|
static Assembly | CheckPathForEngine (string path, Version minVersion, ref Version newestVersionFound, Assembly newestAssemblyFound) |
|
static string | FindEngineInRegistry (RegistryKey rootKey, string subKey) |
|
TestEngineActivator creates an instance of the test engine and returns an ITestEngine interface.
static ITestEngine NUnit.Engine.TestEngineActivator.CreateInstance |
( |
bool |
privateCopy = false | ) |
|
|
inlinestatic |
static ITestEngine NUnit.Engine.TestEngineActivator.CreateInstance |
( |
Version |
minVersion, |
|
|
bool |
privateCopy = false |
|
) |
| |
|
inlinestatic |
Create an instance of the test engine with a minimum version.
If private copy is false, the search order is the NUnit install directory for the current user, then the install directory for the local machine and finally the current AppDomain's ApplicationBase.
- Parameters
-
minVersion | The minimum version of the engine to return inclusive. |
privateCopy | if set to true loads the engine found in the application base directory, otherwise searches for the test engine with the highest version installed. Defaults to true . |
- Exceptions
-
- Returns
- An ITestEngine
static Assembly NUnit.Engine.TestEngineActivator.FindNewestEngine |
( |
Version |
minVersion, |
|
|
bool |
privateCopy |
|
) |
| |
|
inlinestaticprivate |
static Assembly NUnit.Engine.TestEngineActivator.CheckPathForEngine |
( |
string |
path, |
|
|
Version |
minVersion, |
|
|
ref Version |
newestVersionFound, |
|
|
Assembly |
newestAssemblyFound |
|
) |
| |
|
inlinestaticprivate |
static string NUnit.Engine.TestEngineActivator.FindEngineInRegistry |
( |
RegistryKey |
rootKey, |
|
|
string |
subKey |
|
) |
| |
|
inlinestaticprivate |
const string NUnit.Engine.TestEngineActivator.DefaultAssemblyName = "nunit.engine.dll" |
|
private |
const string NUnit.Engine.TestEngineActivator.NunitInstallRegKey = @"SOFTWARE\Nunit.org\Engine" |
|
private |
const string NUnit.Engine.TestEngineActivator.NunitInstallRegKeyWow64 = @"SOFTWARE\Wow6432Node\Nunit.org\Engine" |
|
private |
The documentation for this class was generated from the following file: