Execute() public static method

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