TestableVisualizer CreateVisualizer() { TestableRootWorkItem wi = new TestableRootWorkItem(); TestableVisualizer visualizer = new TestableVisualizer(); visualizer.Initialize(wi, wi.Builder); return(visualizer); }
public void VisualizerLoadsVisualizationsFromConfiguration() { TestableRootWorkItem wi = new TestableRootWorkItem(); TestableVisualizer visualizer = new TestableVisualizer(); visualizer.AddVisualizersFromConfig = true; visualizer.Initialize(wi, wi.Builder); Assert.AreEqual(1, visualizer.Visualizations.Count); foreach (object vis in visualizer.Visualizations) { Assert.IsTrue(vis is MockVisualization); } }