예제 #1
0
 public void ForbiddenSpecial()
 {
     CourseObj courseobj = new ForbiddenCourseObj(SpecialId(0), 1.0F, specialAppearance, new PointF(0, 0));
     SingleObject(courseobj, "forbidden_special");
 }
예제 #2
0
 public void ForbiddenOffset()
 {
     CourseObj courseobj = new ForbiddenCourseObj(SpecialId(0), 1.0F, defaultCourseAppearance, new PointF(0.1F, 0.4F));
     SingleObjectOffset(courseobj, "forbidden_offset");
 }
예제 #3
0
 public void ForbiddenHighlightSpecial()
 {
     CourseObj courseobj = new ForbiddenCourseObj(SpecialId(0), 1.0F, specialAppearance, new PointF(0.1F, 0.4F));
     SingleObjectHighlight(courseobj, "forbidden_highlight_special");
 }
예제 #4
0
 public void ForbiddenDump()
 {
     CourseObj courseobj = new ForbiddenCourseObj(SpecialId(0), 1.0F, defaultCourseAppearance, new PointF(1, 1));
     AssertDump(courseobj, @"Forbidden:      scale:1  location:(1,1)");
 }
예제 #5
0
 public void ForbiddenDistance()
 {
     CourseObj courseobj = new ForbiddenCourseObj(SpecialId(0), 1.0F, defaultCourseAppearance, new PointF(1, 1));
     Assert.AreEqual(5.0 - 1.5, Math.Round(courseobj.DistanceFromPoint(new PointF(4, -3)), 3));
     Assert.AreEqual(0.0, courseobj.DistanceFromPoint(new PointF(1.5F, 0.5F)));
     courseobj = new ForbiddenCourseObj(SpecialId(0), 0.5F, defaultCourseAppearance, new PointF(1, 1));
     Assert.AreEqual(5.0 - 1.5 / 2.0, Math.Round(courseobj.DistanceFromPoint(new PointF(4, -3)), 4));
     Assert.AreEqual(0.0, courseobj.DistanceFromPoint(new PointF(1.2F, 0.3F)));
 }
예제 #6
0
 public void Forbidden()
 {
     CourseObj courseobj = new ForbiddenCourseObj(SpecialId(0), 1.0F, defaultCourseAppearance, new PointF(0, 0));
     SingleObject(courseobj, "forbidden");
 }