public void magnitude_squared() { var ray = new Ray2(new Point2(1, 2), new Vector2(3, 4)); Assert.Equal(double.PositiveInfinity, ray.GetMagnitudeSquared()); }