public void ByParametersOnFaceReference_ValidInput() { var ele = ElementSelector.ByType <Autodesk.Revit.DB.Form>(true).FirstOrDefault(); Assert.NotNull(ele); var form = ele as Form; var faceRef = form.ElementFaceReferences.First(); var pt = ReferencePoint.ByParametersOnFaceReference(faceRef, 0.5, 0.5); Assert.NotNull(pt); pt.X.AssertShouldBeApproximately(-18.19622727891606); }
public void ByParametersOnFaceReference_NullInput() { Assert.Throws(typeof(System.ArgumentNullException), () => ReferencePoint.ByParametersOnFaceReference(null, 0.5, 0.5)); }