public void ByLengthOnCurveReference_ShouldPlaceReferencePointCorrectly() { var l = Line.ByStartPointEndPoint(Point.ByCoordinates(0, 0, 0), Point.ByCoordinates(1, 0, 0)); var modelCurve = ModelCurve.ByCurve(l); var rp = ReferencePoint.ByLengthOnCurveReference(modelCurve.ElementCurveReference, 0.5); var pt = Point.ByCoordinates(0.5, 0, 0); rp.Point.ShouldBeApproximately(pt); InternalPosition(rp).ShouldBeApproximately(pt.InHostUnits()); }
public void ByLengthOnCurveReference_NullInput() { Assert.Throws(typeof(System.ArgumentNullException), () => ReferencePoint.ByLengthOnCurveReference(null, 0.5)); }