public void GetAreaHandles() { CourseObj courseobj = new OOBCourseObj(SpecialId(0), 1, defaultCourseAppearance, new PointF[5] { new PointF(-3.0F, -2.0F), new PointF(-2.5F, 1.5F), new PointF(2.5F, 1.0F), new PointF(3.0F, -2.0F), new PointF(-3.0F, -2.0F) }); PointF[] handles = courseobj.GetHandles(); PointF[] expected = { new PointF(-3.0F, -2.0F), new PointF(-2.5F, 1.5F), new PointF(2.5F, 1.0F), new PointF(3.0F, -2.0F) }; Assert.AreEqual(expected.Length, handles.Length); for (int i = 0; i < handles.Length; ++i) Assert.AreEqual(expected[i], handles[i]); }
public void AreaHandleCursor() { CourseObj courseobj = new OOBCourseObj(SpecialId(0), 1, defaultCourseAppearance, new PointF[5] { new PointF(-3.0F, -2.0F), new PointF(-2.5F, 1.5F), new PointF(2.5F, 1.0F), new PointF(3.0F, -2.0F), new PointF(-3.0F, -2.0F) }); PointF[] handles = courseobj.GetHandles(); for (int i = 0; i < handles.Length; ++i) Assert.AreSame(Util.MoveHandleCursor, courseobj.GetHandleCursor(handles[i])); }