public void GetDataFileInfoTest() { HistoryDataProvider target = new HistoryDataProvider(); // TODO: Initialize to an appropriate value // Test quotes file name string filePath = "sbrf-3.10_2010-03-04_quotes.csv"; var fileInfo = target.GetDataFileInfo(filePath); // Check is quotes Assert.IsTrue(fileInfo.Item3); // Check name Assert.AreEqual(fileInfo.Item1, "sbrf-3.10"); // Check period Assert.AreEqual(fileInfo.Item2, 0); // Test bars file name filePath = string.Concat(TradeRobotics.DataProviders.DataContext.DataDirectory, "sber_m5.csv"); fileInfo = target.GetDataFileInfo(filePath); // Check name Assert.AreEqual(fileInfo.Item1, "sber"); // Check period Assert.AreEqual(fileInfo.Item2, 5); // Check is quotes Assert.IsFalse(fileInfo.Item3); }