Exemple #1
0
        public static void Main()
        {
            CsvWriteHandler    writer = new CsvWriteHandler();
            ReadConsoleHandler reader = new ReadConsoleHandler();

            writer.WriteToCsv(reader.ListToWordCountMap(reader.ReadFromConsole()), writer.FilePathGen("Reader.csv"));
        }
Exemple #2
0
        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"]);
        }