This is true.
Suppose $r$ is the radius of the graph. Then any vertex except for $x$ and $y$ has eccentricity $r$, and $x$ and $y$ have eccentricity greater than $r$.
There must be some vertex $z$ with distance $d(x,z) = \operatorname{ecc}(x)$, by the definition of eccentricity. However, $z$ must in fact be $y$, because, were $z$ not $y$, $\operatorname{ecc}(z) < \operatorname{ecc}(x) = d(x,z)$, a contradiction. Therefore, $d(x,y) = \operatorname{ecc}(x)$.
The same logic holds for $y$, proving the theorem.