public void DelayWithCountdown_OptionsIsNull_ThrowsArgrumentNullException() { ArgumentNullException e = Assert.ThrowsException <ArgumentNullException>( () => _testSubject.DelayWithCountdown(null)); Assert.AreEqual("options", e.ParamName); }
void RunWithParsedInputs(Options options) { // Quick exit if we display 3rd party stuff if (options.ShowThirdPartyNotices) { HandleThirdPartyNoticesAndExit(); } // OptionsEvaluator will throw if the inputs are invalid, so save // them before validation, then save the updated values after validation _options = options; _options = OptionsEvaluator.ProcessInputs(options, _processHelper); _outputGenerator.WriteBanner(_options); _scanDelay.DelayWithCountdown(_options); _scanResultsCollection = ScanRunner.RunScan(_options); }