Example #1
0
        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);
            }
        }
Example #2
0
        public void ReplacementWorks()
        {
            var code = DynamicResponseCreatorBase.CreateCorrectPathsInLoadStatements("#load \"foo.csscript\"", "C:\\dev");

            Assert.Equal("#load \"C:\\dev\\foo.csscript\"", code);
        }