public void CopyFilesWithDirectoryStructureWhenFilesWithDifferentNamesAreGiven() { List <string> files = GetAdditionalCodeCoverageFilesWithDifferentFileNames(); string destinationFilePath = Path.Combine(Path.GetTempPath(), "additional"); try { Directory.CreateDirectory(destinationFilePath); CodeCoverageUtilities.CopyFilesFromFileListWithDirStructure(files, ref destinationFilePath); Assert.True(File.Exists(Path.Combine(destinationFilePath, "a.xml"))); Assert.True(File.Exists(Path.Combine(destinationFilePath, "b.xml"))); } finally { Directory.Delete(destinationFilePath, true); Directory.Delete(Path.Combine(Path.GetTempPath(), "A"), true); } }
public void CopyFilesWithDirectoryStructureWhenInputIsNull() { string destinationFilePath = string.Empty; CodeCoverageUtilities.CopyFilesFromFileListWithDirStructure(null, ref destinationFilePath); }