Пример #1
0
 public void WhenIOpenFilesAndReadPathAndContents(string fileList)
 {
     var files =
         new Path(
             fileList.Split(
                 new[] { ',', ' ' }, StringSplitOptions.RemoveEmptyEntries));
     files.Open(
         (s, p) => {
             using (var reader = new StreamReader(s)) {
                 _resultString += p.ToString() + ":" + reader.ReadToEnd();
             }
         });
 }