路径检查
This commit is contained in:
1 parent
4f1664459d
commit
f760befa26
7 files changed
+108
-11
No files matched your search
+1
-1
@@ -25,7 +25,7 @@ public abstract class TestWithFolder {
|
||||
/// </summary>
|
||||
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));
|
||||
var distPath = Path.Combine(tempFolder, PathUtils.GetLastPart(sourceFilePath));
|
||||
FileUtils.Copy(sourceFilePath, distPath);
|
||||
return distPath;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user