Skip to content

Commit

Permalink
Use forward slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
volkanceylan committed Oct 21, 2024
1 parent a736446 commit 2fbf5a3
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ MvcCommand CreateCommand(string[] viewPaths, out MockFileSystem fileSystem)
"{\"MVC\": {\"UseRootNamespace\": true}}");
var command = new MvcCommand(project, new MockGeneratorConsole());
foreach (var viewPath in viewPaths)
fileSystem.AddFile(fileSystem.Combine(directory, viewPath), "");
fileSystem.AddFile(fileSystem.Combine(directory, PathHelper.ToPath(viewPath)), "");
return command;
}

Expand Down Expand Up @@ -55,11 +55,11 @@ public static partial class Same
}".ReplaceLineEndings();

var command = CreateCommand([
@"Modules\MyModule\A\Same\A1.cshtml",
@"Modules\MyModule\A\Same\A2.cshtml",
@"Modules\MyModule\A\Same\A3.cshtml",
@"Modules\MyModule\B\Same\B1.cshtml",
@"Modules\MyModule\B\Same\B2.cshtml"], out var fileSystem);
"Modules/MyModule/A/Same/A1.cshtml",
"Modules/MyModule/A/Same/A2.cshtml",
"Modules/MyModule/A/Same/A3.cshtml",
"Modules/MyModule/B/Same/B1.cshtml",
"Modules/MyModule/B/Same/B2.cshtml"], out var fileSystem);

var exitCode = command.Run();
Assert.Equal(ExitCodes.Success, exitCode);
Expand Down

0 comments on commit 2fbf5a3

Please sign in to comment.