public void SliceTopReturnsPolygonForRectangle() { var Points = new List <Point2D> { new Point2D(-1, -1), new Point2D(-1, 1), new Point2D(1, 1), new Point2D(1, -1) }; var rect = new PolygonShape(Points); IMoveableSection sect = rect.GetTopSliceSection(1, SlicingPlaneOffsetType.Top); Assert.AreEqual(1.0, sect.YMax); }