Exemplo n.º 1
0
        public void ellipse_offset_top_is_properly_generated()
        {
            FigureManager manager       = new EllipseManager();
            Ellipse       ellipse       = new Ellipse();
            Point         mousePosition = new Point(4, 3);

            manager.Set(5, 5);
            manager.Transform(ellipse, mousePosition);

            Assert.AreEqual(2, manager.OffsetTop);
        }
Exemplo n.º 2
0
        public void ellipse_height_is_properly_calculated()
        {
            FigureManager manager       = new EllipseManager();
            Ellipse       ellipse       = new Ellipse();
            Point         mousePosition = new Point(4, 3);

            manager.Set(3, 3);
            manager.Transform(ellipse, mousePosition);

            Assert.AreEqual(2, ellipse.Width);
        }