public void HelpShortHand() { var results = ExeTestRunner.RunExe("-h"); Assert.Equal(0, results.ExitCode); ContainsStandardUsageText(results); }
private static RunResults RunMinimumValidExe(string filePath, string token = "FAKE_TOKEN", string email = "*****@*****.**", string optionalParameters = null) { return(ExeTestRunner.RunExe(string.Format("publish -z {0} -t {1} -e {2} --dryrun {3}", filePath, token, email, optionalParameters))); }
public void NoArguments_ExitCodeNotSuccess() { var results = ExeTestRunner.RunExe(string.Empty); Assert.NotEqual(0, results.ExitCode); }
public void Version() { var results = ExeTestRunner.RunExe("--version"); Assert.True(Regex.IsMatch(results.StandardOutput, @"\d+.\d+.\d+.\d+")); }
public void InvalidArgument_ExitCodeNotSuccess() { var results = ExeTestRunner.RunExe("--notanoption"); Assert.NotEqual(0, results.ExitCode); }
private static RunResults DryRunExe(string output, string input, string options = "") { return(ExeTestRunner.RunExe(string.Format("compress -o {0} -i {1} --dryrun {2}", output, input, options))); }