public void CheckReportCreation(bool showGraph, string title, List <double> values, List <string> names, string textFormat, List <Color> colors, string path, string expected) { BarChartEngine testObject = new BarChartEngine(showGraph, title, values, names, textFormat, colors, path); string actual = testObject.Create(); Assert.Equal(expected, actual); }
public void CorrectData(bool showGraph, string title, List <double> values, List <string> names, string textFormat, List <Color> colors, string path, string expected) { BarChartEngine testObject = new BarChartEngine(showGraph, title, values, names, textFormat, colors, path); Assert.Equal(showGraph, testObject.ShowGraph); Assert.Equal(title, testObject.Title); Assert.Equal(values, testObject.Values); Assert.Equal(names, testObject.Names); Assert.Equal(textFormat, testObject.TextFormat); Assert.Equal(colors, testObject.Colors); Assert.Equal(path, testObject.Path); }