public void CheckReportCreation(bool showGraph, string title, List <double> xValues, List <double> yValues, string xName, string yName, Color color, string path, string expected) { LineGraphEngine testObject = new LineGraphEngine(showGraph, title, xValues, yValues, xName, yName, color, path); string actual = testObject.Create(); Assert.Equal(expected, actual); }
public void CorrectData(bool showGraph, string title, List <double> xValues, List <double> yValues, string xName, string yName, Color color, string path, string expected) { LineGraphEngine testObject = new LineGraphEngine(showGraph, title, xValues, yValues, xName, yName, color, path); Assert.Equal(showGraph, testObject.ShowGraph); Assert.Equal(title, testObject.Title); Assert.Equal(xValues, testObject.XValues); Assert.Equal(yValues, testObject.YValues); Assert.Equal(xName, testObject.XName); Assert.Equal(yName, testObject.YName); Assert.Equal(color, testObject.ColorData); Assert.Equal(path, testObject.Path); }