コード例 #1
0
        public void WriteBanner_OptionsIsNull_ThrowsArgumentNullException()
        {
            ArgumentNullException e = Assert.ThrowsException <ArgumentNullException>(
                () => _testSubject.WriteBanner(null));

            Assert.AreEqual("options", e.ParamName);
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: karanbirsingh/axe-windows
        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);
        }