public void BuildsSymbolsStringFromFile() { GetDefaults(); string filepath = _dir + @"SandPRemoved.csv"; SymbolListBuilder builder = new SymbolListBuilder(); FileInfo symbolFileInfo = new FileInfo(filepath); var result = builder.BuildSymbolsStringFromFile(symbolFileInfo); Assert.IsTrue(result.Length > 0); }
public void BuildsAListFromFile() { GetDefaults(); SymbolListBuilder builder = new SymbolListBuilder(); FileInfo symbolFileInfo = new FileInfo(_dir + @"\SandP_Companies.csv"); Dictionary <string, string> symbolDictionary = builder.BuildListFromFile(symbolFileInfo); Assert.IsNotNull(symbolDictionary); Assert.IsNotNull(symbolFileInfo); Assert.IsTrue(symbolDictionary.ContainsKey("MMM")); }