Skip to content

Commit 44b4a46

Browse files
committed
WIP: Fix command
1 parent ac80790 commit 44b4a46

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/PowerShellEditorServices.Test/Debugging/DebugServiceTests.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
using Microsoft.Extensions.Logging.Abstractions;
1212
using Microsoft.PowerShell.EditorServices.Services;
1313
using Microsoft.PowerShell.EditorServices.Services.DebugAdapter;
14-
using Microsoft.PowerShell.EditorServices.Services.PowerShell.Debugging;
1514
using Microsoft.PowerShell.EditorServices.Services.PowerShell.Execution;
1615
using Microsoft.PowerShell.EditorServices.Services.PowerShell.Host;
1716
using Microsoft.PowerShell.EditorServices.Services.TextDocument;
@@ -54,7 +53,6 @@ public DebugServiceTests()
5453
debugService = new DebugService(
5554
_psesHost,
5655
_psesHost.DebugContext,
57-
// new PowerShellDebugContext(NullLoggerFactory.Instance, null, _psesHost),
5856
null,
5957
new BreakpointService(
6058
NullLoggerFactory.Instance,
@@ -97,7 +95,7 @@ await debugService.SetCommandBreakpointsAsync(
9795
new[] { CommandBreakpointDetails.Create("Get-Random") }).ConfigureAwait(false);
9896

9997
Task executeTask = _psesHost.ExecutePSCommandAsync(
100-
new PSCommand().AddCommand("Get-Random").AddArgument(string.Join(" ", "-Maximum", "100")), CancellationToken.None);
98+
new PSCommand().AddCommand("Get-Random").AddParameter("Maximum", 100), CancellationToken.None);
10199

102100
AssertDebuggerStopped("", 1);
103101
debugService.Continue();

0 commit comments

Comments
 (0)