Exemple #1
0
 public void FlattenFilePaths_TwoItems_TrimsAndStringCorrect()
 {
     using (var e = new EnvironmentForTest())
     {
         var task = new Archive.Archive();
         task.BasePath       = e.BasePath;
         task.InputFilePaths = e.TwoItemsWithBasePath("a.cs", "b.cs");
         var result = task.FlattenFilePaths(task.InputFilePaths, ' ', false);
         Assert.AreEqual("a.cs b.cs", result);
     }
 }
Exemple #2
0
 public void FlattenFilePaths_TwoItemsForceQuote_TrimsAndQuotesStringCorrect()
 {
     using (new EnvironmentForTest())
     {
         var task = new Archive.Archive {
             BasePath       = EnvironmentForTest.BasePath,
             InputFilePaths = EnvironmentForTest.TwoItemsWithBasePath("a.cs", "b.cs")
         };
         var result = task.FlattenFilePaths(task.InputFilePaths, ' ', true);
         Assert.AreEqual("\"a.cs\" \"b.cs\"", result);
     }
 }