public void ByLengthOnCurveReference_ValidInput() { var l = Line.ByStartPointEndPoint(Point.ByCoordinates(0, 0, 0), Point.ByCoordinates(1, 0, 0)); var modelCurve = ModelCurve.ByCurve(l); var pt = ReferencePoint.ByLengthOnCurveReference(modelCurve.ElementCurveReference, 0.5); Assert.NotNull(pt); Assert.AreEqual(0.5, pt.X); Assert.AreEqual(0, pt.Y); Assert.AreEqual(0, pt.Z); }
public void ByLengthOnCurveReference_NullInput() { Assert.Throws(typeof(System.ArgumentNullException), () => ReferencePoint.ByLengthOnCurveReference(null, 0.5)); }