You can measure the Doppler shift of the donor, and by looking at the spectrum of this star alone, you come to the conclusion that the mass must be about 30 solar masses, and then you can argue that the invisible x-ray source must be a black hole. 