Пример #1
0
 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}");
     }
 }
Пример #2
0
        private static Bitmap GetCloudImage(int rectCount, IEnumerable <Size> sizeGenerator, Point centerPoint)
        {
            var cloud = ConstructNewTagCloud(rectCount, sizeGenerator, centerPoint);

            return(Visualizer.GetCloudVisualization(cloud));
        }