public TestRunner GetTestRunner()
{
lock (InitalizeLock)
{
if (!CoreExtensions.Host.Initialized)
{
InitalizeNUnits();
}
}
var pack = new TestPackage(_assemblyLocation);
//TODO next two lines, really needed???
pack.PrivateBinPath = Path.GetDirectoryName(_assemblyLocation);
//pack.BasePath = Path.GetDirectoryName(_assemblyLocation);
//pack.ConfigurationFile = _assemblyLocation + ".config";
var nu = new MultipleTestDomainRunner();
//var nu = new SimpleTestRunner(Thread.CurrentThread.ManagedThreadId);
//var nu = new ThreadedTestRunner(new RemoteTestRunner());
if (!nu.Load(pack))
{
throw new ApplicationException("what... very rude stuff happened");
}
return nu;
}