protected Execute ( ) : System.Threading.Tasks.Task | ||
Результат | 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")); }