public void ToPolylinesTest() { PMBoundary boundary = _powerMILL.ActiveProject.Boundaries.CreateBoundary(TestFiles.CurvesFiles); var polylines = boundary.ToPolylines(); Assert.AreEqual(2, polylines.Count); }
public void CreateFromPolyLine() { PMBoundary boundary = _powerMILL.ActiveProject.Boundaries.CreateBoundary(TestFiles.CurvesFiles); var polyline = boundary.ToPolylines().First(); PMBoundary newBoundary = _powerMILL.ActiveProject.Boundaries.CreateBoundary(polyline); Assert.NotNull(newBoundary); }