Rename Platform.GameDir to Platform.EngineDir.

This commit is contained in:
Paul Chote
2020-11-21 15:23:36 +00:00
committed by teinarss
parent 72f1f06ebc
commit 1cc1f93fb0
18 changed files with 29 additions and 29 deletions

View File

@@ -18,13 +18,13 @@ namespace OpenRA.Test
public class PlatformTest
{
string supportDir;
string gameDir;
string engineDir;
[SetUp]
public void SetUp()
{
supportDir = Platform.SupportDir;
gameDir = Platform.GameDir;
engineDir = Platform.EngineDir;
}
[TestCase(TestName = "Returns literal paths")]
@@ -34,13 +34,13 @@ namespace OpenRA.Test
Is.EqualTo(Path.Combine(supportDir, "testpath")));
Assert.That(Platform.ResolvePath(".\\testpath"),
Is.EqualTo(Path.Combine(gameDir, "testpath")));
Is.EqualTo(Path.Combine(engineDir, "testpath")));
Assert.That(Platform.ResolvePath("./testpath"),
Is.EqualTo(Path.Combine(gameDir, "testpath")));
Is.EqualTo(Path.Combine(engineDir, "testpath")));
Assert.That(Platform.ResolvePath(Path.Combine(".", "Foo.dll")),
Is.EqualTo(Path.Combine(gameDir, "Foo.dll")));
Is.EqualTo(Path.Combine(engineDir, "Foo.dll")));
Assert.That(Platform.ResolvePath("testpath"),
Is.EqualTo("testpath"));