This paper presents a self-testing protocol for maximally entangled states of arbitrary local dimension using a minimal number of measurements (two per subsystem). The protocol leverages the violation of a single *d*-outcome Bell inequality to certify the quantum state and measurements without knowing the device's internal workings. This self-testing result enables unbounded randomness expansion, generating log₂*d* perfect random bits using only one random bit to encode measurement choices.