public void CreateCloudFunctionalTest() { tagsCloudCreator.CreateCloud(textPath, imagePath); var current = File.ReadAllBytes(imagePath); var expected = File.ReadAllBytes(expectedImagePath); current.Should().Equal(expected); }
private void ShowImage(object sender, EventArgs eventArgs) { tableLayoutPanel.Hide(); Size = imageConfig.ImageSize; tagsCloudProcessor.CreateCloud(wordsConfig.Path, imageConfig.Path); using var image = Image.FromFile(imageConfig.Path); using var graphics = CreateGraphics(); graphics.DrawImage(image, new PointF(0, 0)); }
private void ShowImage(object sender, EventArgs eventArgs) { AcceptSettings(); tableLayoutPanel.Hide(); backSettingsButton.Show(); tagsCloudProcessor.CreateCloud(wordsConfig.Path, imageConfig.Path) .Then(value => DrawCloud()) .OnFail(ShowErrorBox); }