Execute() protected method

protected Execute ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task
Esempio n. 1
0
 public void ShouldThrowIfNoServerSpecified()
 {
     Assert.Throws <CommandException>(() => apiCommand.Execute("--apiKey=ABCDEF123456789"));
 }
 public void ShouldThrowIfNoServerSpecified()
 {
     Environment.SetEnvironmentVariable(ApiCommand.ServerUrlEnvVar, "");
     Assert.Throws <CommandException>(() => apiCommand.Execute("--apiKey=ABCDEF123456789"));
 }