コード例 #1
0
        public void AppReturnsMissingParametersReturnCodeIfMandatoryParametersAreMissing()
        {
            string[] args       = { "-l", TestConstants.EmbeddedJbossLogfile };
            var      returncode = CommandLineInterface.Main(args);

            Assert.AreEqual((int)CliReturnCodes.MissingParameters, returncode);
        }
コード例 #2
0
        public void AppReturnsFileNotFoundReturnCodeIfFileIsMissing()
        {
            string[] args       = { "-l", "not/existing/log.file", "-d", "not/existing/definitions.file" };
            var      returncode = CommandLineInterface.Main(args);

            Assert.AreEqual((int)CliReturnCodes.FileNotFound, returncode);
        }
コード例 #3
0
ファイル: Program.cs プロジェクト: dotjpg3141/Strings
 private static int Main(string[] args)
 {
     return(CommandLineInterface.Main(args, TsqlStringExtractor.FromFile));
 }