public void DrawCircleInFrameWithoutFrame__ReturnsFalse()
        {
            _frameManager = new GeometricalFrameManager();
            var isCircleDrwaninConsole = _frameManager.DrawShapesInsideFrame(_circle);

            Assert.AreEqual(isCircleDrwaninConsole, false);
        }
        public void MoveCircleInFrameWithoutFrame__ReturnsFalse()
        {
            _frameManager = new GeometricalFrameManager();
            Point newcenterPoint         = new Point(8, -8);
            var   newCenter              = new ResizeFactor(newcenterPoint);
            var   isCircleDrwaninConsole = _frameManager.MoveShapesInsideFrame(_circle, newCenter);

            Assert.AreEqual(isCircleDrwaninConsole, false);
        }
        public void AddRectangleWithoutFrame_WithValidCoordinates_Returns_False()
        {
            //No frame but adding rectangle
            _frameManager = new GeometricalFrameManager();
            Point originPoint = new Point(5, -5);

            _rectangle = new Rectangle(originPoint, 4, 3);
            bool isRectangleAdded = _frameManager.AddShapesInsideFrame(_rectangle);

            Assert.AreEqual(isRectangleAdded, false, "Rectangle Not Added Please check");
        }
        public void AddCircleWithoutFrame_WithValidCoordinates_Returns_False()
        {
            //No frame but adding circle
            _frameManager = new GeometricalFrameManager();
            Point centerPoint = new Point(5, -5);

            _circle = new Circle(centerPoint, 5);
            bool isCircleAdded = _frameManager.AddShapesInsideFrame(_circle);

            Assert.AreEqual(isCircleAdded, false, "Circle Not Added Please check");
        }
        public void AddRectangleWithInvalidFrame_WithValidCoordinates_Returns_False()
        {
            _frameManager = new GeometricalFrameManager();
            //invalid frame
            _frameManager.AddFrame(0, 0);
            Point originPoint = new Point(5, -5);

            _rectangle = new Rectangle(originPoint, 4, 3);
            bool isRectangleAdded = _frameManager.AddShapesInsideFrame(_rectangle);

            Assert.AreEqual(isRectangleAdded, false, "Please check isRectangleAdded");
        }
        public void ResizeRectangleInFrameWithNoFrame__ReturnsFalse()
        {
            Point originPoint = new Point(5, -5);

            _rectangle = new Rectangle(originPoint, 4, 3);
            _frameManager.AddShapesInsideFrame(_rectangle);
            _frameManager = new GeometricalFrameManager();
            var newHeightandWidth  = new ResizeFactor(5, 5);
            var isRectangleResized = _frameManager.ResizeShapesInsideFrame(_rectangle, newHeightandWidth);

            Assert.AreEqual(isRectangleResized, false);
        }
        public void AddCircleWithInvalidFrame_WithValidCoordinates_Returns_False()
        {
            _frameManager = new GeometricalFrameManager();
            //invalid frame
            _frameManager.AddFrame(0, 0);
            Point centerPoint = new Point(5, -5);

            _circle = new Circle(centerPoint, 5);
            bool isCircleAdded = _frameManager.AddShapesInsideFrame(_circle);

            Assert.AreEqual(isCircleAdded, false, "Please check isCircleAdded");
        }
 public void CleanUp()
 {
     _frameManager = null;
     _rectangle    = null;
 }
 public void Setup()
 {
     _frameManager = new GeometricalFrameManager();
     _frameManager.AddFrame(10, -10);
 }
Exemplo n.º 10
0
 public void CleanUp()
 {
     _frameManager = null;
     _circle       = null;
 }
Exemplo n.º 11
0
 public void CleanUp()
 {
     _geometricalFrameManager = null;
 }
Exemplo n.º 12
0
 public void Setup()
 {
     _geometricalFrameManager = new GeometricalFrameManager();
 }