public void test_CreateFormObject() { var nUnitWrapper = new NUnitWrapper(); Assert.That(File.Exists(nUnitWrapper.NUnitGuiRunnerDll), "Nunit Gui Runner executable was not found: {0}", nUnitWrapper.NUnitGuiRunnerDll); //nUnitWrapper.execMainForm(); var appDomainSetup = new AppDomainSetup { ApplicationBase = NUnitWrapper.pathToNUnitBinFolder }; //appDomainSetup. AppDomain appDomain = AppDomain.CreateDomain("nUnitExec", null, appDomainSetup); appDomain.ExecuteAssembly(Path.Combine(NUnitWrapper.pathToNUnitBinFolder, "nunit-x86.exe")); // Form mainForm = nUnitWrapper.getMainForm(); // Assert.That(mainForm != null, "mainForm == null"); // mainForm.ShowDialog(); //Application.Run(mainForm); }
public void startNUnit() { nUnitWrapper = new NUnitWrapper(NUnitWrapper.pathToNUnitBinFolder); string fileToLoadInNUnit = DI.config.ExecutingAssembly; // nUnitWrapper.startNunitInSeparateAppDomain(fileToLoadInNUnit); }