Replace ^ and . in platform paths with ^SupportDir and ^EngineDir.

This commit is contained in:
Paul Chote
2020-11-21 15:35:41 +00:00
committed by teinarss
parent 1cc1f93fb0
commit dd0b08d54a
36 changed files with 6205 additions and 6210 deletions

View File

@@ -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"),