public void StatisticalTableBuilder_Forecast() { ForecastStatisticsTableData std21 = new ForecastStatisticsTableData(0, 9, 8, 7, 6, 5, 4, DateTime.MinValue, 99); ForecastStatisticsTableData std22 = new ForecastStatisticsTableData(0, 9, 8, 7, 6, 5, 4, DateTime.MinValue, 99); ForecastStatisticsTableData std23 = new ForecastStatisticsTableData(0, 9, 8, 7, 6, 5, 4, DateTime.MinValue, 99); ForecastStatisticsTableData std24 = new ForecastStatisticsTableData(0, 9, 8, 7, 6, 5, 4, DateTime.MinValue, 99); Helper.stdForecast = new List <ForecastStatisticsTableData> { std21, std22, std23, std24 }; List <TableData> stbForecast = Helper.ForecastStatisticalTableBuilder(PlotType.Forecast); uint top, right, bottom, left; top = 1; left = 3; bottom = 2; right = 4; foreach (TableData t in stbForecast) { Assert.Equal(t.top, top); Assert.Equal(t.left, left); Assert.Equal(t.bottom, bottom); Assert.Equal(t.right, right); top++; bottom++; } }
public void StatisticalTableBuilder_Simulation() { ForecastStatisticsTableData std11 = new ForecastStatisticsTableData(1, 2, 3, 4, 5, 6, 7, DateTime.MinValue, 99); ForecastStatisticsTableData std12 = new ForecastStatisticsTableData(1, 2, 3, 4, 5, 6, 7, DateTime.MinValue, 99); ForecastStatisticsTableData std13 = new ForecastStatisticsTableData(1, 2, 3, 4, 5, 6, 7, DateTime.MinValue, 99); ForecastStatisticsTableData std14 = new ForecastStatisticsTableData(1, 2, 3, 4, 5, 6, 7, DateTime.MinValue, 99); Helper.stdSimulation = new List <ForecastStatisticsTableData> { std11, std12, std13, std14 }; List <TableData> stbSimulation = Helper.ForecastStatisticalTableBuilder(PlotType.Simulation); uint top, right, bottom, left; top = 1; left = 2; bottom = 2; right = 3; foreach (TableData t in stbSimulation) { Assert.Equal(t.top, top); Assert.Equal(t.left, left); Assert.Equal(t.bottom, bottom); Assert.Equal(t.right, right); top++; bottom++; } }