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