コード例 #1
0
                void RunTest(UnitTest test)
                {
                    var debugModeSet = Runtime.ProcessService.GetDebugExecutionMode();

                    MonoDevelop.Core.Execution.IExecutionHandler ctx = null;
                    if (debug && debugModeSet != null)
                    {
                        foreach (var executionMode in debugModeSet.ExecutionModes)
                        {
                            if (test.CanRun(executionMode.ExecutionHandler))
                            {
                                ctx = executionMode.ExecutionHandler;
                                break;
                            }
                        }
                    }

                    var pad     = IdeApp.Workbench.GetPad <TestPad> ();
                    var content = (TestPad)pad.Content;

                    content.RunTest(test, ctx);
                }