예제 #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
 private static int Main(string[] args)
 {
     return(CommandLineInterface.Main(args, TsqlStringExtractor.FromFile));
 }