public static void infinite_magnitude_squared() { var line = new Line2(new Point2(1, 2), new Vector2(3, 4)); var squaredMagnitude = line.GetMagnitudeSquared(); squaredMagnitude.Should().Be(Double.PositiveInfinity); }