示例#1
0
 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;
 }
示例#2
0
 public void DeleteFigureTestStorage()
 {
     _storage.Setup(a => a.RemoveFigureAt(1));
     _drawingEngine.DeleteFigure();
     _storage.Verify(a => a.RemoveFigureAt(1), Times.Never);
 }