public void GetObjectURL_should_throw_EndpointUnreachableException_when_server_unavailable() { Func <Task> act = async() => await _s3Client.GetObjectURL("test"); act.Should().Throw <EndpointUnreachableException>(); }