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