Exemple #1
0
        public void PointOnEdgeOfLeftishAndRightishSectionsIsInBothOfThem()
        {
            int leftCompare  = leftIsh.CompareTo(pointOnEdgeOfLeftishAndRightish);
            int rightCompare = rightIsh.CompareTo(pointOnEdgeOfLeftishAndRightish);

            Assert.True(leftCompare == 0 && rightCompare == 0);
        }
Exemple #2
0
        public void CentrePointInBothBeachLines()
        {
            int leftCompare  = left.CompareTo(centrePoint);
            int rightCompare = right.CompareTo(centrePoint);

            Assert.True(leftCompare == 0 && rightCompare == 0);
        }
Exemple #3
0
 public static void Greater(BeachSection bs, Point p)
 {
     Assert.True(bs.CompareTo(p) > 0);
 }
Exemple #4
0
 public static void Intersecting(BeachSection bs, Point p)
 {
     Assert.True(bs.CompareTo(p) == 0);
 }
Exemple #5
0
 public static void Less(BeachSection bs, Point p)
 {
     Assert.True(bs.CompareTo(p) < 0);
 }
Exemple #6
0
        void CompareFullBeachlineToOtherBeachline()
        {
            BeachSection fullBeach = new BeachSection(new Point(0, 0), null, null);

            fullBeach.CompareTo(RandomBeachSection());
        }