diff --git a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Gui/RunPythonCommandTests.cs b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Gui/RunPythonCommandTests.cs index d1ebf7dea2..d4366aee0e 100644 --- a/src/AddIns/BackendBindings/Python/PythonBinding/Test/Gui/RunPythonCommandTests.cs +++ b/src/AddIns/BackendBindings/Python/PythonBinding/Test/Gui/RunPythonCommandTests.cs @@ -61,7 +61,7 @@ namespace PythonBinding.Tests.Gui public void Run_PythonFileOpen_IronPythonConsoleAndPythonFileNameAndPausePassedAsCommandLineArguments() { string args = debugger.ProcessStartInfo.Arguments; - string expectedArgs = "/c \"C:\\IronPython\\ipy.exe \"test.py\"\" & pause"; + string expectedArgs = "/c \"\"C:\\IronPython\\ipy.exe\" \"test.py\"\" & pause"; Assert.AreEqual(expectedArgs, args); } diff --git a/src/AddIns/BackendBindings/Ruby/RubyBinding/Test/Gui/RunRubyCommandTests.cs b/src/AddIns/BackendBindings/Ruby/RubyBinding/Test/Gui/RunRubyCommandTests.cs index 1ba2d2d20e..39224b6d95 100644 --- a/src/AddIns/BackendBindings/Ruby/RubyBinding/Test/Gui/RunRubyCommandTests.cs +++ b/src/AddIns/BackendBindings/Ruby/RubyBinding/Test/Gui/RunRubyCommandTests.cs @@ -62,7 +62,7 @@ namespace RubyBinding.Tests.Gui public void Run_RubyFileOpen_ProcessInfoArgsContainsFileNameActiveInTextEditor() { string arguments = debugger.ProcessStartInfo.Arguments; - string expectedArguments = "/c \"C:\\IronRuby\\ir.exe \"test.rb\"\" & pause"; + string expectedArguments = "/c \"\"C:\\IronRuby\\ir.exe\" \"test.rb\"\" & pause"; Assert.AreEqual(expectedArguments, arguments); } diff --git a/src/AddIns/BackendBindings/Scripting/Project/Src/PauseCommandPromptProcessStartInfo.cs b/src/AddIns/BackendBindings/Scripting/Project/Src/PauseCommandPromptProcessStartInfo.cs index 15f98267df..3dc0ad4824 100644 --- a/src/AddIns/BackendBindings/Scripting/Project/Src/PauseCommandPromptProcessStartInfo.cs +++ b/src/AddIns/BackendBindings/Scripting/Project/Src/PauseCommandPromptProcessStartInfo.cs @@ -28,7 +28,7 @@ namespace ICSharpCode.Scripting string GetArguments() { - return String.Format("/c \"{0} {1}\" & pause", + return String.Format("/c \"\"{0}\" {1}\" & pause", processStartInfo.FileName, processStartInfo.Arguments); } }