public void Test_CheckNumberOfReadRowsForNonEmptyFile() { //Arrange var rows = initData.Split(new[] { "\n" }, StringSplitOptions.None); int numberOfRowsWithoutTheComments = rows.Count(s => s.First() != '#'); ////Act var result = materialDataProcessor.Process(rows); ////Asset Assert.AreEqual(numberOfRowsWithoutTheComments, result.Count); }
public static void Main() { IReader consoleDataReader = new ConsoleReader(); var rows = consoleDataReader.ReadAllLines(); IDataExtractor <Material> materialDataExtractor = new MaterialDataExtractor(); var materialDataProcessor = new MaterialDataProcessor(materialDataExtractor); var processedRows = materialDataProcessor.Process(rows); IPresentable standardConsoleOutput = new StandardConsoleOutput(); standardConsoleOutput.Display(processedRows); }