NUnitTestRunner GetRunner (string assemblyPath) { TestPackage package = new TestPackage (assemblyPath); package.Settings ["ShadowCopyFiles"] = false; DomainManager dm = new DomainManager (); AppDomain domain = dm.CreateDomain (package); string asm = Path.Combine (Path.GetDirectoryName (GetType ().Assembly.Location), "NUnitRunner.dll"); runner = (NUnitTestRunner) domain.CreateInstanceFromAndUnwrap (asm, "MonoDevelop.NUnit.External.NUnitTestRunner"); runner.Initialize (typeof(NF.Assert).Assembly.Location, typeof(NC.Test).Assembly.Location); return runner; }
public DomainRunner( int runnerId ) : base(runnerId) { DomainManager = new DomainManager(); }