Replace ^ and . in platform paths with ^SupportDir and ^EngineDir.
This commit is contained in:
@@ -30,16 +30,10 @@ namespace OpenRA.Test
|
||||
[TestCase(TestName = "Returns literal paths")]
|
||||
public void ResolvePath()
|
||||
{
|
||||
Assert.That(Platform.ResolvePath("^testpath"),
|
||||
Assert.That(Platform.ResolvePath("^SupportDir|testpath"),
|
||||
Is.EqualTo(Path.Combine(supportDir, "testpath")));
|
||||
|
||||
Assert.That(Platform.ResolvePath(".\\testpath"),
|
||||
Is.EqualTo(Path.Combine(engineDir, "testpath")));
|
||||
|
||||
Assert.That(Platform.ResolvePath("./testpath"),
|
||||
Is.EqualTo(Path.Combine(engineDir, "testpath")));
|
||||
|
||||
Assert.That(Platform.ResolvePath(Path.Combine(".", "Foo.dll")),
|
||||
Assert.That(Platform.ResolvePath("^EngineDir|Foo.dll"),
|
||||
Is.EqualTo(Path.Combine(engineDir, "Foo.dll")));
|
||||
|
||||
Assert.That(Platform.ResolvePath("testpath"),
|
||||
|
||||
Reference in New Issue
Block a user