Skip to content

Commit 64eab8f

Browse files
committed
fixed Windows tests
1 parent 8a81057 commit 64eab8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Dotnet.Script.Tests/ScaffoldingTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public void ShouldUpdatePathToDotnetScript()
179179
[Fact]
180180
public void ShouldCreateUnifiedLaunchFileWhenInstalledAsGlobalTool()
181181
{
182-
Scaffolder scaffolder = CreateTestScaffolder("somefolder/.dotnet/tools/dotnet-script");
182+
Scaffolder scaffolder = CreateTestScaffolder($"somefolder{Path.DirectorySeparatorChar}.dotnet{Path.DirectorySeparatorChar}tools{Path.DirectorySeparatorChar}dotnet-script");
183183

184184
using var scriptFolder = new DisposableFolder();
185185
scaffolder.InitializerFolder("main.csx", scriptFolder.Path);
@@ -191,7 +191,7 @@ public void ShouldCreateUnifiedLaunchFileWhenInstalledAsGlobalTool()
191191
public void ShouldUpdateToUnifiedLaunchFileWhenInstalledAsGlobalTool()
192192
{
193193
Scaffolder scaffolder = CreateTestScaffolder("some-install-folder");
194-
Scaffolder globalToolScaffolder = CreateTestScaffolder("somefolder/.dotnet/tools/dotnet-script");
194+
Scaffolder globalToolScaffolder = CreateTestScaffolder($"somefolder{Path.DirectorySeparatorChar}.dotnet{Path.DirectorySeparatorChar}tools{Path.DirectorySeparatorChar}dotnet-script");
195195
using var scriptFolder = new DisposableFolder();
196196
scaffolder.InitializerFolder("main.csx", scriptFolder.Path);
197197
var fileContent = File.ReadAllText(Path.Combine(scriptFolder.Path, ".vscode", "launch.json"));

0 commit comments

Comments
 (0)