public void TakeWordsFromList_MustNotSplitWords()
        {
            IEnumerable <string> words = new string[] { "123", "45", "678", "9ABCD" };

            String lines = fileProcessingService.WordsToLines(words, 7);

            Assert.AreEqual(
                @"123 45
678
9ABCD
", lines, "Line do not match");
        }
Beispiel #2
0
 private void Process()
 {
     try
     {
         String context             = _fileProcessingService.LoadFileContext(InputFilePath);
         IEnumerable <string> words = _fileProcessingService.SplitToWords(context);
         Results = _fileProcessingService.WordsToLines(words, MaxLineLenght);
     }
     catch (Exception ex)
     {
         Results = ex.Message;
     }
 }