Hysterosalpingography is an X-ray test to outline the internal shape of the uterus and show whether the fallopian tubes are blocked.