예제 #1
0
파일: Program.cs 프로젝트: DvnKor/tdd
        private static void SaveRectangles(CircularCloudLayouter layouter, string fileName)
        {
            var image    = Visualizer.VisualizeLayout(layouter);
            var fullPath = Directory.GetCurrentDirectory() + ExamplesDirectory + fileName;

            image.Save(fullPath, ImageFormat.Png);
        }
예제 #2
0
        public void TearDown()
        {
            if (TestContext.CurrentContext.Result.Outcome != ResultState.Failure)
            {
                return;
            }

            var fullPath = Path.Combine(TestDirectoryPath, TestContext.CurrentContext.Test.FullName + ".png");
            var image    = visualizer.VisualizeLayout(layouter);

            image.Save(fullPath, ImageFormat.Png);
            TestContext.WriteLine($"Tag cloud visualization saved to file {fullPath}");
        }