Exemplo n.º 1
0
        public void StrokeOnly_HitTest(double x, double y, bool inside)
        {
            var ellipseNode = new EllipseNode(Matrix.Identity, null, new ImmutablePen(Brushes.Black, 2), new Rect(0, 0, 100, 100), null);

            var point = new Point(x, y);

            Assert.Equal(inside, ellipseNode.HitTest(point));
        }
Exemplo n.º 2
0
        public void FillOnly_HitTest(double x, double y, bool inside)
        {
            var ellipseNode = new EllipseNode(Matrix.Identity, Brushes.Black, null, new Rect(0, 0, 100, 100), null);

            var point = new Point(x, y);

            Assert.True(ellipseNode.HitTest(point) == inside);
        }