public void ReplacementWorks() { var rootedPath = RootedPath("d", "foobar"); var code = DynamicResponseCreatorBase.CreateCorrectPathsInLoadStatements("#load \"foo.csscript\"", rootedPath); if (IsWindows) { Assert.Equal($"#load \"d:\\foobar\\foo.csscript\"", code); } else { Assert.Equal($"#load \"/d/foobar/foo.csscript\"", code); } }
public void ReplacementWorks() { var code = DynamicResponseCreatorBase.CreateCorrectPathsInLoadStatements("#load \"foo.csscript\"", "C:\\dev"); Assert.Equal("#load \"C:\\dev\\foo.csscript\"", code); }