迁移部分常用路径

This commit is contained in:
龙腾猫跃 committed 2026-06-18 21:43:27 +08:00
1 parent e9cd356f2b
commit 966b2db312
5 files changed
+30 -14

No files matched your search

+2 -2
View File
@@ -7,7 +7,7 @@
public abstract class TestBase {
public TestBase() {
MeloongCore.Main.Init(new TestLogger());
MeloongCore.Main.Init("MeloongCoreTest", new TestLogger());
}
private class TestLogger : BaseLogger {
public override void HandleBehavior(string? rawMessage, string formattedMessage, LogBehavior behavior, Exception? ex)
@@ -40,7 +40,7 @@ public abstract class TestWithFolder : TestBase {
/// 输出指定的测试用文件,返回文件路径。
/// </summary>
public string GetTestFile(string fileName) {
var sourceFilePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "TestFiles", GetType().Name.Replace("Test", ""), fileName);
var sourceFilePath = Path.Combine(Paths.Base, "TestFiles", GetType().Name.Replace("Test", ""), fileName);
var distPath = Path.Combine(tempFolder, PathUtils.GetLastPart(sourceFilePath));
FileUtils.Copy(sourceFilePath, distPath);
return distPath;