Exemple #1
0
 public void TestGetSelectedShapeShapeDrawer()
 {
     _canvasDrawer.GetSelectedShapeShapeDrawer(new Point());
     Assert.IsTrue(_canvasShapeDrawersHelper.IsCalledGetMostRecentDrawShapeDrawerThatIsCloseToPoint);
 }
 /// <summary>
 /// Selects the shape.
 /// </summary>
 private void SelectShape(Point mousePosition)
 {
     _currentSelectedShapeShapeDrawer = _canvasDrawer.GetSelectedShapeShapeDrawer(mousePosition);
     _canvasDrawer.NotifyCurrentShapeChanged();
 }