public void TestProcessResultsShouldReturnCorrectNumberOfCharts() { var handler = new TrendDataResultsHandler(); const int requestCount = 7; const int iterations = 50; var results = new DataResultsBuilder().AddSamples(requestCount, iterations, 100, 300, true).Build(); var charts = handler.ProcessResults(results); Assert.That(charts.Length == requestCount); }
public void TestProcessResultsShouldReturnCorrectInformation() { var handler = new ComparisonDataResultsHandler(); int requestCount = 1; int iterations = 50; var results = new DataResultsBuilder().AddSamples("Test/", requestCount, iterations, 100, 300, false).Build(); var charts = handler.ProcessResults(results); Assert.That(charts[0].Data != null); }