Esempio n. 1
0
        public void ShouldSupportValidIntForKeepAlive()
        {
#if NETFRAMEWORK
            CommandLineArgs.Add("--keepalive=10");
            TestCommandExtensions.Execute(apiCommand, CommandLineArgs.ToArray());
#endif
        }
Esempio n. 2
0
 public void ShouldThrowNiceExceptionForInvalidKeepalive()
 {
     CommandLineArgs.Add("--keepalive=fred");
     Assert.Throws <CommandException>(() => TestCommandExtensions.Execute(apiCommand, CommandLineArgs.ToArray()));
 }
Esempio n. 3
0
 public void ShouldSupportValidIntAndTimespanForTimeout(string input)
 {
     CommandLineArgs.Add("--timeout=" + input);
     TestCommandExtensions.Execute(apiCommand, CommandLineArgs.ToArray());
 }