/// <summary> /// Handles the canvas left mouse pressed. /// </summary> public void HandleCanvasLeftMousePressed(Point mousePosition) { if (_canvasDrawer.CurrentShapeDrawerType == ShapeDrawerType.None) { GoToResizingStateOrSelectShape(_canvasDrawer.GetSelectedResizingShapeDrawer(mousePosition), mousePosition); } else { GoToDrawingState(mousePosition); } }
public void TestGetSelectedResizingShapeDrawer() { _canvasDrawer.GetSelectedResizingShapeDrawer(new Point()); Assert.IsTrue(_canvasShapeDrawersHelper.IsCalledGetMostRecentDrawShapeDrawerWhoseDrawingEndingPointIsCloseToPoint); }