Execute() protected méthode

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