private void BtnDelete_Click(object sender, EventArgs e) { drawingEngine.DeleteFigure(); FiguresListBox.Items.Clear(); FiguresListBox.Items.AddRange(drawingEngine.GetFigureList()); PictureBoxPaint.Image = drawingEngine.MainImage; drawingEngine.SetSelectedFigure(-1); _isFigureSelected = false; }
public void DeleteFigureTestStorage() { _storage.Setup(a => a.RemoveFigureAt(1)); _drawingEngine.DeleteFigure(); _storage.Verify(a => a.RemoveFigureAt(1), Times.Never); }