private static bool ExecuteTFSProcessorIgnoringAsserts(AnalysisConfig config, IEnumerable <string> userCmdLineArguments, ILogger logger, string exeFileName, string propertiesFileName, IProcessRunner runner) { using (new AssertIgnoreScope()) { return(TfsProcessorWrapper.ExecuteProcessorRunner(config, logger, exeFileName, userCmdLineArguments, propertiesFileName, runner)); } }
public void Execute_WhenUserCmdLineArgumentsIsNull_Throws() { // Arrange var testSubject = new TfsProcessorWrapper(new TestLogger()); Action act = () => testSubject.Execute(new AnalysisConfig(), null, String.Empty); // Act & Assert act.Should().ThrowExactly <ArgumentNullException>().And.ParamName.Should().Be("userCmdLineArguments"); }
public void Execute_WhenConfigIsNull_Throws() { // Arrange var testSubject = new TfsProcessorWrapper(new TestLogger()); Action act = () => testSubject.Execute(null, new string[] { }, String.Empty); // Act & Assert act.Should().ThrowExactly <ArgumentNullException>().And.ParamName.Should().Be("config"); }