public void TearDown() { if (TestContext.CurrentContext.Result.Outcome.Status.Equals(TestStatus.Failed)) { var picturePath = $@"{TestContext.CurrentContext.TestDirectory}\{TestContext.CurrentContext.Test.Name}.jpg"; var bitmap = Visualizer.GetCloudVisualization(_cloud); bitmap.Save(picturePath, ImageFormat.Jpeg); Console.WriteLine($"Tag cloud visualization saved to file {picturePath}"); } }
private static Bitmap GetCloudImage(int rectCount, IEnumerable <Size> sizeGenerator, Point centerPoint) { var cloud = ConstructNewTagCloud(rectCount, sizeGenerator, centerPoint); return(Visualizer.GetCloudVisualization(cloud)); }