Execute() protected method

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