1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

fix regression issue with log paths oops

This commit is contained in:
RaidMax
2020-04-13 18:15:46 -05:00
parent 957f7d1a0f
commit dd884dc578
2 changed files with 17 additions and 3 deletions

View File

@ -59,5 +59,14 @@ namespace ApplicationTests
Assert.AreEqual(expected, generated);
}
[Test]
public void Test_GenerateLogPath_RelativeBasePath()
{
string expected = "C:\\Game\\main\\folder\\log.log";
string generated = IW4MServer.GenerateLogPath("main\\folder", "C:\\Game", "main\\folder", null, "log.log");
Assert.AreEqual(expected, generated);
}
}
}