Exemplo n.º 1
0
        public void NumberOfIntersections_Of_Polyline_Throws_Argument_Exception()
        {
            Point coordinate = new Point(1, 1);

            Assert.That(() => ProjectionVertical.NumberOfIntersections(coordinate, polyline.ToArray()),
                        Throws.Exception
                        .TypeOf <ArgumentException>());
        }
Exemplo n.º 2
0
        public int NumberOfIntersections_Intersection_Multiple_Solid_Void(double y)
        {
            Point coordinate = new Point(1, y);

            return(ProjectionVertical.NumberOfIntersections(coordinate, comb.ToArray()));
        }
Exemplo n.º 3
0
        public int NumberOfIntersections_Left_Of_Square(double y)
        {
            Point coordinate = new Point(6, y);

            return(ProjectionVertical.NumberOfIntersections(coordinate, square.ToArray()));
        }
Exemplo n.º 4
0
        public int NumberOfIntersections_Between_Left_And_Right_of_Square(double y)
        {
            Point coordinate = new Point(1, y);

            return(ProjectionVertical.NumberOfIntersections(coordinate, square.ToArray()));
        }