internal RunAllMCutTestCasesCommand(MCutTestEntity test, MCutTestRunType runType, RunMCutTestOptions runOptions, bool interactive) : base(interactive) { _test = test; _runOptions = runOptions; _runType = runType; }
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()); }
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); }; }
private bool PassesTestFilters(MCutTestEntity t) { if (TestTypeNameFilter != null && !TestTypeNameFilter.IsMatch(t.GetType().Name)) { return(false); } if (TestMethodNameFilter != null && !TestMethodNameFilter.IsMatch(t.OwningTestMethod.MethodName)) { return(false); } if (ClassNameFilter != null && !ClassNameFilter.IsMatch(t.OwningTestMethod.OwningClass.ClassFullName)) { return(false); } return(true); }
protected RunMCutTestCaseAppTask(MCutTestEntity test) { InitializeTask(); Test = test; }