public void ShouldGenerateChart() { StatisticsChartGenerator generator = new StatisticsChartGenerator(new Plotter("c:/", "png", ImageFormat.Png)); generator.RelevantStats = new string[] { "TestCount" }; generator.Process(statistics, "dummy"); }
public void SetUp() { statistics = new XmlDocument(); statistics.LoadXml(xml); mockPlotter= new DynamicMock(typeof(IPlotter)); chartGenerator = new StatisticsChartGenerator((IPlotter)mockPlotter.MockInstance); }
public void SetUp() { statistics = new XmlDocument(); statistics.LoadXml(xml); mockPlotter = new Mock <IPlotter>(); chartGenerator = new StatisticsChartGenerator((IPlotter)mockPlotter.Object); }