Beispiel #1
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);
     };
 }
        protected RunMCutTestCaseAppTask(MCutTestCaseRunEntity run)
            : base(run.DataElement.Element(XSessionNames.TaskState))
        {
            InitializeTask();

            Test         = run.OwningTest;
            RunType      = run.RunType;
            Run          = run;
            ParentEntity = run.Parent;
            PreviousRun  = run.Ancestors().OfType <MCutTestCaseRunEntity>().FirstOrDefault();

            EnableRegressionTestAsserts = (bool?)run.DataElement.Attribute(XSessionNames.AEnableRegressionTestAsserts) ?? false;
            RunInteractively            = (bool?)run.DataElement.Attribute(XSessionNames.ARunInteractively) ?? false;

            Debug.Assert(Status >= AppTaskStatus.Setup);
        }
 public RunMChessBasedTestTask(MCutTestCaseRunEntity run)
     : base(run)
 {
     UseGoldenObservationFile = (bool?)run.DataElement.Attribute(XSessionNames.AUseGoldenObservationFile) ?? false;
 }
 public RunMChessTestTask(MCutTestCaseRunEntity run) : base(run)
 {
 }
 public RunPerformanceTestTask(MCutTestCaseRunEntity run) : base(run)
 {
 }
 public RunUnitTestTask(MCutTestCaseRunEntity run) : base(run)
 {
 }