public void ClosestPoint(Segment2D segment, Point2 point, Point2 expectedClosestPoint) { var actualClosestPoint = segment.ClosestPointTo(point); Assert.AreEqual(expectedClosestPoint, actualClosestPoint); }