internal RunAllMCutTestCasesCommand(MCutTestEntity test, MCutTestRunType runType, RunMCutTestOptions runOptions, bool interactive)
     : base(interactive)
 {
     _test       = test;
     _runOptions = runOptions;
     _runType    = runType;
 }
 public override AppTasks.RunMCutTestCaseAppTask CreateRunTestTask(MCutTestRunType runType)
 {
     return(new AppTasks.RunPerformanceTestTask(this)
     {
         RunType = runType
     });
 }
 public override AppTasks.RunMCutTestCaseAppTask CreateRunTestTask(MCutTestRunType runType)
 {
     return(new AppTasks.RunMChessBasedTestTask(this)
     {
         RunType = runType
     });
 }
示例#4
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);
     };
 }
示例#5
0
 internal RunMCutTestCaseCommand(MCutTestCaseRunEntity prevTestRun, MCutTestRunType runType, RunMCutTestOptions runOptions, bool interactive)
     : base(interactive)
     //: this(testRun.OwningTest
     //, testRun.DataElement.Element(XTestResultNames.TestResult)
     //, testRun.OwningTest.CreateXTestCase(testRun.TestCase, prototype)
     //, prototype, interactive)
 {
     _runOptions     = runOptions;
     _createTaskFunc = () => {
         var task = (RunMCutTestCaseAppTask)prevTestRun.OwningTest.CreateRunTestTask(runType);
         task.ParentEntity = prevTestRun.Result;
         task.PreviousRun  = prevTestRun;
         return(task);
     };
 }
示例#6
0
 /// <summary>When implemented in a derived class, creates a new instance that can run this test.</summary>
 public abstract AppTasks.RunMCutTestCaseAppTask CreateRunTestTask(MCutTestRunType runType);