Rename Platform.GameDir to Platform.EngineDir.
This commit is contained in:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user