public void TearDown() { if (TestContext.CurrentContext.Result.Outcome.Status != TestStatus.Failed) { return; } var fileName = $"{TestContext.CurrentContext.Test.Name}_Failed.jpg"; var path = $"../../../FailedTests/{fileName}"; var visualizer = new TagCloudTagCloudVisualizer(GetDefaultTagCloud()); var image = visualizer.CreateTagCloudBitMap(1920, 1080, new[] { Color.Blue, Color.Aqua }, "Times New Roman"); image.GetValueOrThrow().Save(path); }
public void SetUp() { tagCloudVisualizer = new TagCloudTagCloudVisualizer(tagCloud); }