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);
        }
Exemple #2
0
 public void startNUnit()
 {
     nUnitWrapper = new NUnitWrapper(NUnitWrapper.pathToNUnitBinFolder);
     string fileToLoadInNUnit = DI.config.ExecutingAssembly;
     //       nUnitWrapper.startNunitInSeparateAppDomain(fileToLoadInNUnit);            
 }
 public void startNUnit()
 {
     nUnitWrapper = new NUnitWrapper(NUnitWrapper.pathToNUnitBinFolder);
     string fileToLoadInNUnit = DI.config.ExecutingAssembly;
     //       nUnitWrapper.startNunitInSeparateAppDomain(fileToLoadInNUnit);
 }
Exemple #4
0
        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);
        }