diff --git a/tests/Serenity.Net.CodeGenerator.Tests/MvcCommandTests/MvcCommandTests.cs b/tests/Serenity.Net.CodeGenerator.Tests/MvcCommandTests/MvcCommandTests.cs index 88c4deb8e9..2b603bcea6 100644 --- a/tests/Serenity.Net.CodeGenerator.Tests/MvcCommandTests/MvcCommandTests.cs +++ b/tests/Serenity.Net.CodeGenerator.Tests/MvcCommandTests/MvcCommandTests.cs @@ -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; } @@ -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);