public void testRandomPoint() { Point2D randomPoint = testPolylineOpen.randomPoint(); for (int i = 0; i < 1000; ++i) { randomPoint = testPolylineOpen.randomPoint(); Assert.IsTrue(testPolylineOpen.isInsideBorder(randomPoint)); } for (int i = 0; i < 1000; ++i) { randomPoint = testPolylineClosed.randomPoint(); Assert.IsTrue(testPolylineClosed.isInsideBorder(testPolylineClosed.randomPoint())); } }