public void test_createControlAndShowItOnSimpleForm() { const bool loadAsApplication = false; var o2Debuggger = new O2MDbg(); var o2MDbgShellForm = o2Debuggger.showShellTestGuiAsNewWindowsForm(loadAsApplication); if (loadAsApplication == false) { Assert.That(o2MDbgShellForm != null, "o2MdbgShell == null"); Assert.That(o2MDbgShellForm.Visible, "o2MdbgShell was not Visible!"); o2MDbgShellForm.Close(); } o2Debuggger.stopMDbg(); }
public void startO2MDbgAndRunTestProcess() { o2MDbg = new O2MDbg(); o2MDbg.o2MdbgIsReady.WaitOne(); // make sure the o2Mdbg is ready Assert.That(File.Exists(mockObjects_CompiledExe.PathToCreatedAssemblyFile), "Test exe file was not created"); // Processes.Sleep(1000); // give it 1s to start the process Assert.That(!o2MDbg.IsActive && !o2MDbg.IsRunning, "At this stage both o2MDbg.IsActive and o2MDbg.IsRunning should be false"); Assert.That(o2MDbg.lastCommandExecutionMessage != "", "o2MDbg.lastCommandExecutionMessage was empty"); // start test process o2MDbg.execSync(O2MDbgCommands.run(mockObjects_CompiledExe.PathToCreatedAssemblyFile)); //Processes.Sleep(1000); // give it 1s to start Assert.That(o2MDbg.IsActive && !o2MDbg.IsRunning, "At this stage both o2MDbg.IsActive should be true and o2MDbg.IsRunning should be false"); }