public void WriteBanner_OptionsIsNull_ThrowsArgumentNullException()
        {
            ArgumentNullException e = Assert.ThrowsException <ArgumentNullException>(
                () => _testSubject.WriteBanner(null));

            Assert.AreEqual("options", e.ParamName);
        }
예제 #2
0
        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);
            _scanResults = ScanRunner.RunScan(_options);
        }