public void PointOnEdgeOfLeftishAndRightishSectionsIsInBothOfThem() { int leftCompare = leftIsh.CompareTo(pointOnEdgeOfLeftishAndRightish); int rightCompare = rightIsh.CompareTo(pointOnEdgeOfLeftishAndRightish); Assert.True(leftCompare == 0 && rightCompare == 0); }
public void CentrePointInBothBeachLines() { int leftCompare = left.CompareTo(centrePoint); int rightCompare = right.CompareTo(centrePoint); Assert.True(leftCompare == 0 && rightCompare == 0); }
public static void Greater(BeachSection bs, Point p) { Assert.True(bs.CompareTo(p) > 0); }
public static void Intersecting(BeachSection bs, Point p) { Assert.True(bs.CompareTo(p) == 0); }
public static void Less(BeachSection bs, Point p) { Assert.True(bs.CompareTo(p) < 0); }
void CompareFullBeachlineToOtherBeachline() { BeachSection fullBeach = new BeachSection(new Point(0, 0), null, null); fullBeach.CompareTo(RandomBeachSection()); }