public void LoadBarsTest() { try { HistoryDataProvider target = new HistoryDataProvider(); // TODO: Initialize to an appropriate value StockDataSeries dataSeries; dataSeries = target.LoadBars(@"sber_m5.csv"); Assert.AreNotEqual(dataSeries, null); Assert.AreNotEqual(dataSeries.Count, 0); Assert.AreEqual(dataSeries.Symbol, "sber"); Assert.AreEqual(dataSeries.Period, 5); } catch (Exception ex) { Assert.Fail(ex.ToString()); } }
public void LoadBarsTest() { try { HistoryDataProvider target = new HistoryDataProvider(); // TODO: Initialize to an appropriate value StockDataSeries dataSeries; dataSeries = target.LoadBars(@"sber_m5.csv"); Assert.AreNotEqual(dataSeries, null); Assert.AreNotEqual(dataSeries.Count, 0); Assert.AreEqual(dataSeries.Symbol, "sber"); Assert.AreEqual(dataSeries.Period, 5); } catch (Exception ex) { Assert.Fail(ex.ToString()); } }