private void MenuClear_Click(object sender, EventArgs e) { drawingEngine.ClearStorage(); drawingEngine.ClearCanvas(); PictureBoxPaint.Image = drawingEngine.MainImage; FiguresListBox.Items.Clear(); FiguresListBox.Items.AddRange(drawingEngine.GetFigureList()); settings.SetMode(SettingsConstants.DefaultMode); }
public void ClearCanvasTestStorage() { _storage.Setup(a => a.Clear()); _drawingEngine.ClearCanvas(); _storage.Verify(a => a.Clear(), Times.Once); }