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); } }
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); } }