Exemplo n.º 1
0
        public static void Main(string[] args)
        {
            logger.Info("IIS Log Muncher (" + Assembly.GetExecutingAssembly().GetName().Version.ToString() + ")" + " starting.");

            var clp = new CommandLineProcessor("achis:t:");
            var clo = clp.ProcessArgs(args);

            if (clo.IsOptionSet('h'))
            {
                ShowHelpText();
            }

            var fhe = new FileHelperEngine(clo);
            fhe.ProcessFileList();

            logger.Info("IIS Log Muncher finished.");
        }
            public void ProcessArgs_ValidOptions_NoExceptionThrown()
            {
                // arrange
                CommandLineOptions expected = new CommandLineOptions();

                string[] args = { };
                clp.Options = "azAZ09:";

                // act
                actual = clp.ProcessArgs(args);

                // assert -- should get here no problem
                Assert.True(true);
            }