Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 public void ClearCanvasTestStorage()
 {
     _storage.Setup(a => a.Clear());
     _drawingEngine.ClearCanvas();
     _storage.Verify(a => a.Clear(), Times.Once);
 }