public void ExecutorExecuteShouldReturnSuccessWithoutExecutionInDesignMode() { CommandLineOptions.Instance.Reset(); CommandLineOptions.Instance.IsDesignMode = true; var testRequestManager = new TestRequestManager(CommandLineOptions.Instance, new TestPlatform(), TestLoggerManager.Instance, TestRunResultAggregator.Instance, this.mockTestPlatformEventSource.Object); var executor = new RunTestsArgumentExecutor(CommandLineOptions.Instance, null, testRequestManager); Assert.AreEqual(ArgumentProcessorResult.Success, executor.Execute()); }
private static RunTestsArgumentExecutor GetExecutor(ITestRequestManager testRequestManager) { var runSettingsProvider = new TestableRunSettingsProvider(); runSettingsProvider.AddDefaultRunSettings(); var executor = new RunTestsArgumentExecutor( CommandLineOptions.Instance, runSettingsProvider, testRequestManager); return(executor); }
public void ExecutorExecuteShouldReturnSuccessWithoutExecutionInDesignMode() { var runSettingsProvider = new TestableRunSettingsProvider(); runSettingsProvider.UpdateRunSettings("<RunSettings/>"); CommandLineOptions.Instance.Reset(); CommandLineOptions.Instance.IsDesignMode = true; var testRequestManager = new TestRequestManager(CommandLineOptions.Instance, TestPlatformFactory.GetTestPlatform(), TestRunResultAggregator.Instance, this.mockTestPlatformEventSource.Object, this.inferHelper, this.mockMetricsPublisherTask); var executor = new RunTestsArgumentExecutor(CommandLineOptions.Instance, runSettingsProvider, testRequestManager, this.mockOutput.Object); Assert.AreEqual(ArgumentProcessorResult.Success, executor.Execute()); }