public static void Main() { CsvWriteHandler writer = new CsvWriteHandler(); ReadConsoleHandler reader = new ReadConsoleHandler(); writer.WriteToCsv(reader.ListToWordCountMap(reader.ReadFromConsole()), writer.FilePathGen("Reader.csv")); }
public void GivenListOfLinesThenReturnsWordCountMap() { List <String> testList = new List <String>() { "Hello", "World", "Philips", "Hello", "Philips", "and" }; Dictionary <String, int> outcome = _reader.ListToWordCountMap(testList); Assert.Equal(_wordmap["Hello"], outcome["Hello"]); }