@@ -237,6 +237,7 @@ public async Task UsesDotSourceOperatorAndQuotesAsync()
237
237
await client . LaunchScript ( filePath ) ;
238
238
ConfigurationDoneResponse configDoneResponse = await client . RequestConfigurationDone ( new ConfigurationDoneArguments ( ) ) ;
239
239
Assert . NotNull ( configDoneResponse ) ;
240
+
240
241
string actual = await ReadScriptLogLineAsync ( ) ;
241
242
Assert . StartsWith ( ". '" , actual ) ;
242
243
}
@@ -248,6 +249,7 @@ public async Task UsesCallOperatorWithSettingAsync()
248
249
await client . LaunchScript ( filePath , executeMode : "Call" ) ;
249
250
ConfigurationDoneResponse configDoneResponse = await client . RequestConfigurationDone ( new ConfigurationDoneArguments ( ) ) ;
250
251
Assert . NotNull ( configDoneResponse ) ;
252
+
251
253
string actual = await ReadScriptLogLineAsync ( ) ;
252
254
Assert . StartsWith ( "& '" , actual ) ;
253
255
}
@@ -261,7 +263,9 @@ public async Task CanLaunchScriptWithNoBreakpointsAsync()
261
263
262
264
ConfigurationDoneResponse configDoneResponse = await client . RequestConfigurationDone ( new ConfigurationDoneArguments ( ) ) ;
263
265
Assert . NotNull ( configDoneResponse ) ;
264
- Assert . Equal ( "works" , await ReadScriptLogLineAsync ( ) ) ;
266
+
267
+ string actual = await ReadScriptLogLineAsync ( ) ;
268
+ Assert . Equal ( "works" , actual ) ;
265
269
}
266
270
267
271
[ SkippableFact ]
@@ -308,8 +312,11 @@ public async Task CanSetBreakpointsAsync()
308
312
309
313
_ = await client . RequestContinue ( new ContinueArguments { ThreadId = 1 } ) ;
310
314
311
- Assert . Equal ( "at breakpoint" , await ReadScriptLogLineAsync ( ) ) ;
312
- Assert . Equal ( "after breakpoint" , await ReadScriptLogLineAsync ( ) ) ;
315
+ string atBreakpointActual = await ReadScriptLogLineAsync ( ) ;
316
+ Assert . Equal ( "at breakpoint" , atBreakpointActual ) ;
317
+
318
+ string afterBreakpointActual = await ReadScriptLogLineAsync ( ) ;
319
+ Assert . Equal ( "after breakpoint" , afterBreakpointActual ) ;
313
320
}
314
321
315
322
[ SkippableFact ]
@@ -337,7 +344,7 @@ await client.SetBreakpoints(
337
344
await client . RequestConfigurationDone ( new ConfigurationDoneArguments ( ) ) ;
338
345
await client . LaunchScript ( filePath ) ;
339
346
340
- // Try to get the stacktrace. If we are not at a breakpoint, this should fail .
347
+ // Try to get the stacktrace, which should throw as we are not currently at a breakpoint.
341
348
await Assert . ThrowsAsync < JsonRpcException > ( ( ) => client . RequestStackTrace (
342
349
new StackTraceArguments { }
343
350
) ) ;
@@ -353,7 +360,7 @@ public async Task SendsInitialLabelBreakpointForPerformanceReasons()
353
360
"label breakpoint"
354
361
) ) ;
355
362
356
- // Trigger a launch. Note that per DAP spec, launch doesn't actually begin until ConfigDone finishes.
363
+ // Request a launch. Note that per DAP spec, launch doesn't actually begin until ConfigDone finishes.
357
364
await client . LaunchScript ( filePath ) ;
358
365
359
366
SetBreakpointsResponse setBreakpointsResponse = await client . SetBreakpoints ( new SetBreakpointsArguments
0 commit comments