Code Review 2

This commit is contained in:
龙腾猫跃 committed 2026-05-07 09:20:23 +08:00
1 parent 9158a69b62
commit 368280fcb5
8 files changed
+54 -45

No files matched your search

+2 -2
View File
@@ -17,7 +17,7 @@ public abstract class TestWithFolder {
$"{GetType().Name}-{Guid.NewGuid()}",
"文件夹 Dir_!@#$%^&()_+={}[];',_",
new string('X', 200), new string('X', 200)) + @"\";
Directory.CreateDirectory(@"\\?\" + tempFolder);
DirectoryUtils.Create(tempFolder);
}
/// <summary>
@@ -26,7 +26,7 @@ public abstract class TestWithFolder {
public string GetTestFile(string fileName) {
var sourceFilePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "TestFiles", GetType().Name.Replace("Test", ""), fileName);
var distPath = Path.Combine(tempFolder, Path.GetFileName(sourceFilePath));
File.Copy(sourceFilePath, @"\\?\" + distPath);
FileUtils.Copy(sourceFilePath, distPath);
return distPath;
}