Ejemplo n.º 1
0
        public void TearDown()
        {
            var testResult = TestContext.CurrentContext.Result.Outcome;
            var testName   = TestContext.CurrentContext.Test.Name;

            if (Equals(testResult, ResultState.Failure) ||
                Equals(testResult, ResultState.Error))
            {
                var dateTime = DateTime.Today.ToString("dd.MM.yyyy HH.mm.ss");
                var filename = $"[{dateTime}] {testName}.png";
                var path     = Path.Combine(currentTestFolderPath, filename);
                var width    = (int)currentCircularCloudLayouter.GetCloud().GetWidth();
                var height   = (int)currentCircularCloudLayouter.GetCloud().GetHeight();
                currentCircularCloudLayouter.GetCloud().VizualizeToFile(width, height, path);
                Console.WriteLine($"Tag cloud visualization saved to file {path}");
            }
        }