public void ForbiddenSpecial() { CourseObj courseobj = new ForbiddenCourseObj(SpecialId(0), 1.0F, specialAppearance, new PointF(0, 0)); SingleObject(courseobj, "forbidden_special"); }
public void ForbiddenOffset() { CourseObj courseobj = new ForbiddenCourseObj(SpecialId(0), 1.0F, defaultCourseAppearance, new PointF(0.1F, 0.4F)); SingleObjectOffset(courseobj, "forbidden_offset"); }
public void ForbiddenHighlightSpecial() { CourseObj courseobj = new ForbiddenCourseObj(SpecialId(0), 1.0F, specialAppearance, new PointF(0.1F, 0.4F)); SingleObjectHighlight(courseobj, "forbidden_highlight_special"); }
public void ForbiddenDump() { CourseObj courseobj = new ForbiddenCourseObj(SpecialId(0), 1.0F, defaultCourseAppearance, new PointF(1, 1)); AssertDump(courseobj, @"Forbidden: scale:1 location:(1,1)"); }
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))); }
public void Forbidden() { CourseObj courseobj = new ForbiddenCourseObj(SpecialId(0), 1.0F, defaultCourseAppearance, new PointF(0, 0)); SingleObject(courseobj, "forbidden"); }