Пример #1
0
 public void RegMarkSpecial()
 {
     CourseObj courseobj = new RegMarkCourseObj(SpecialId(0), 1.0F, specialAppearance, new PointF(0, 0));
     SingleObject(courseobj, "reg_mark_special");
 }
Пример #2
0
 public void RegMarkOffset()
 {
     CourseObj courseobj = new RegMarkCourseObj(SpecialId(0), 1.0F, defaultCourseAppearance, new PointF(0.1F, 0.4F));
     SingleObjectOffset(courseobj, "reg_mark_offset");
 }
Пример #3
0
 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)));
 }
Пример #4
0
 public void RegMarkDump()
 {
     CourseObj courseobj = new RegMarkCourseObj(SpecialId(0), 1.0F, defaultCourseAppearance, new PointF(1, 1));
     AssertDump(courseobj, @"RegMark:        scale:1  location:(1,1)");
 }
Пример #5
0
 public void RegMark()
 {
     CourseObj courseobj = new RegMarkCourseObj(SpecialId(0), 1.0F, defaultCourseAppearance, new PointF(0, 0));
     SingleObject(courseobj, "reg_mark");
 }