public void AppReturnsMissingParametersReturnCodeIfMandatoryParametersAreMissing() { string[] args = { "-l", TestConstants.EmbeddedJbossLogfile }; var returncode = CommandLineInterface.Main(args); Assert.AreEqual((int)CliReturnCodes.MissingParameters, returncode); }
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); }
private static int Main(string[] args) { return(CommandLineInterface.Main(args, TsqlStringExtractor.FromFile)); }