@@ -496,7 +496,7 @@ public async Task DebuggerBreaksWhenRequested()
496
496
Assert . Equal ( 0 , confirmedBreakpoints . Count ) ;
497
497
Task _ = ExecuteDebugFileAsync ( ) ;
498
498
// NOTE: This must be run on a separate thread so the async event handlers can fire.
499
- await Task . Run ( ( ) => debugService . Break ( ) ) . ConfigureAwait ( true ) ;
499
+ await Task . Run ( debugService . Break ) . ConfigureAwait ( true ) ;
500
500
AssertDebuggerPaused ( ) ;
501
501
}
502
502
@@ -505,7 +505,7 @@ public async Task DebuggerRunsCommandsWhileStopped()
505
505
{
506
506
Task _ = ExecuteDebugFileAsync ( ) ;
507
507
// NOTE: This must be run on a separate thread so the async event handlers can fire.
508
- await Task . Run ( ( ) => debugService . Break ( ) ) . ConfigureAwait ( true ) ;
508
+ await Task . Run ( debugService . Break ) . ConfigureAwait ( true ) ;
509
509
AssertDebuggerPaused ( ) ;
510
510
511
511
// Try running a command from outside the pipeline thread
@@ -723,7 +723,7 @@ await debugService.SetLineBreakpointsAsync(
723
723
724
724
// The above just tests that the debug service returns the correct new value string.
725
725
// Let's step the debugger and make sure the values got set to the new values.
726
- await Task . Run ( ( ) => debugService . StepOver ( ) ) . ConfigureAwait ( true ) ;
726
+ await Task . Run ( debugService . StepOver ) . ConfigureAwait ( true ) ;
727
727
AssertDebuggerStopped ( variableScriptFile . FilePath ) ;
728
728
729
729
// Test set of a local string variable (not strongly typed)
@@ -779,7 +779,7 @@ await debugService.SetLineBreakpointsAsync(
779
779
780
780
// The above just tests that the debug service returns the correct new value string.
781
781
// Let's step the debugger and make sure the values got set to the new values.
782
- await Task . Run ( ( ) => debugService . StepOver ( ) ) . ConfigureAwait ( true ) ;
782
+ await Task . Run ( debugService . StepOver ) . ConfigureAwait ( true ) ;
783
783
AssertDebuggerStopped ( variableScriptFile . FilePath ) ;
784
784
785
785
// Test set of a local string variable (not strongly typed but force conversion)
0 commit comments