private void PictureBoxPaint_MouseUp(object sender, MouseEventArgs e) { if (settings.Mode != EFigure.SmoothCurve) { _isFigureCreated = false; drawingEngine.CleanBackground(); } currentProcess.Refresh(); memoryLabel.Text = "Memory usage: " + ((float)currentProcess.PrivateMemorySize64 / 1024f / 1024f).ToString("F1") + " MB"; FiguresListBox.Items.Clear(); FiguresListBox.Items.AddRange(drawingEngine.GetFigureList()); }
public void GetFigureListTestStorage() { var t = new List <string>() { "Line" }; _storage.Setup(a => a.GetFiguresNames()).Returns(t); _drawingEngine.GetFigureList(); _storage.Verify(a => a.GetFiguresNames(), Times.Once); }