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