public void GetPointAtFractionAlongCurveThrowsArgumentException(string points, double fraction, string expected) { var testElement = new PolyLine2D(from x in points.Split(';') select Point2D.Parse(x)); var checkElement = Point2D.Parse(expected); Assert.Throws<ArgumentException>(() => { testElement.GetPointAtFractionAlongCurve(fraction); }); }
public void GetPointAtFractionAlongCurveThrowsArgumentException(string points, double fraction, string expected) { var testElement = new PolyLine2D(from x in points.Split(';') select Point2D.Parse(x)); var checkElement = Point2D.Parse(expected); Assert.Throws <ArgumentException>(() => { testElement.GetPointAtFractionAlongCurve(fraction); }); }
public void GetPointAtFractionAlongCurve(string points, double fraction, string expected) { // Note that this method also tests GetPointAtLengthFromStart(...) var testElement = new PolyLine2D(from x in points.Split(';') select Point2D.Parse(x)); var checkElement = Point2D.Parse(expected); Assert.AreEqual(checkElement, testElement.GetPointAtFractionAlongCurve(fraction)); }