public void ShouldThrowIfNoServerSpecified() { Assert.Throws <CommandException>(() => apiCommand.Execute("--apiKey=ABCDEF123456789")); }
public void ShouldThrowIfNoServerSpecified() { Environment.SetEnvironmentVariable(ApiCommand.ServerUrlEnvVar, ""); Assert.Throws <CommandException>(() => apiCommand.Execute("--apiKey=ABCDEF123456789")); }