public void RegMarkSpecial() { CourseObj courseobj = new RegMarkCourseObj(SpecialId(0), 1.0F, specialAppearance, new PointF(0, 0)); SingleObject(courseobj, "reg_mark_special"); }
public void RegMarkOffset() { CourseObj courseobj = new RegMarkCourseObj(SpecialId(0), 1.0F, defaultCourseAppearance, new PointF(0.1F, 0.4F)); SingleObjectOffset(courseobj, "reg_mark_offset"); }
public void RegMarkDistance() { CourseObj courseobj = new RegMarkCourseObj(SpecialId(0), 1.0F, defaultCourseAppearance, new PointF(1, 1)); Assert.AreEqual(5.0 - 2.0, Math.Round(courseobj.DistanceFromPoint(new PointF(4, -3)), 3)); Assert.AreEqual(0.0, courseobj.DistanceFromPoint(new PointF(1.5F, 0.5F))); courseobj = new RegMarkCourseObj(SpecialId(0), 0.5F, defaultCourseAppearance, new PointF(1, 1)); Assert.AreEqual(5.0 - 2.0 / 2.0, Math.Round(courseobj.DistanceFromPoint(new PointF(4, -3)), 4)); Assert.AreEqual(0.0, courseobj.DistanceFromPoint(new PointF(1.2F, 0.3F))); }
public void RegMarkDump() { CourseObj courseobj = new RegMarkCourseObj(SpecialId(0), 1.0F, defaultCourseAppearance, new PointF(1, 1)); AssertDump(courseobj, @"RegMark: scale:1 location:(1,1)"); }
public void RegMark() { CourseObj courseobj = new RegMarkCourseObj(SpecialId(0), 1.0F, defaultCourseAppearance, new PointF(0, 0)); SingleObject(courseobj, "reg_mark"); }