コード例 #1
0
        private string ExecuteTestCase(MCutTestEntity test, TestContextEntityBase context, TestArgs args, bool selectRun)
        {
            var cmd = new RunMCutTestCaseCommand(test, _runType, context, args, _runOptions, interactive);

            cmd.SelectRun = selectRun;
            System.Diagnostics.Debug.WriteLine("   Executing sub-command: " + cmd.DisplayName);
            cmd.Execute((Model)this._test.Model);
            return(cmd.GetError());
        }
コード例 #2
0
 internal RunMCutTestCaseCommand(MCutTestEntity test, MCutTestRunType runType, TestContextEntityBase context, TestArgs args, RunMCutTestOptions runOptions, bool interactive)
     : base(interactive)
 {
     _runOptions     = runOptions;
     _createTaskFunc = () => {
         var task = (RunMCutTestCaseAppTask)test.CreateRunTestTask(runType);
         task.ParentEntity = test;
         task.TestContext  = context;
         task.TestArgs     = args;
         return(task);
     };
 }