Esempio n. 1
0
        public void HelpShortHand()
        {
            var results = ExeTestRunner.RunExe("-h");

            Assert.Equal(0, results.ExitCode);
            ContainsStandardUsageText(results);
        }
Esempio n. 2
0
 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)));
 }
Esempio n. 3
0
        public void NoArguments_ExitCodeNotSuccess()
        {
            var results = ExeTestRunner.RunExe(string.Empty);

            Assert.NotEqual(0, results.ExitCode);
        }
Esempio n. 4
0
        public void Version()
        {
            var results = ExeTestRunner.RunExe("--version");

            Assert.True(Regex.IsMatch(results.StandardOutput, @"\d+.\d+.\d+.\d+"));
        }
Esempio n. 5
0
        public void InvalidArgument_ExitCodeNotSuccess()
        {
            var results = ExeTestRunner.RunExe("--notanoption");

            Assert.NotEqual(0, results.ExitCode);
        }
Esempio n. 6
0
 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)));
 }