@@ -26,7 +26,7 @@ public async Task TestReturnCode()
2626 {
2727 var exitCode = await new HostBuilder ( )
2828 . ConfigureServices ( collection => collection . AddSingleton < IConsole > ( new TestConsole ( _output ) ) )
29- . RunCommandLineApplicationAsync ( new string [ 0 ] , ( app ) => app . OnExecute ( ( ) => 42 ) ) ;
29+ . RunCommandLineApplicationAsync ( new string [ 0 ] , app => app . OnExecute ( ( ) => 42 ) ) ;
3030 Assert . Equal ( 42 , exitCode ) ;
3131 }
3232
@@ -39,7 +39,7 @@ public async Task TestConsoleInjection()
3939 console . SetupGet ( c => c . Out ) . Returns ( textWriter . Object ) ;
4040 await new HostBuilder ( )
4141 . ConfigureServices ( collection => collection . AddSingleton ( console . Object ) )
42- . RunCommandLineApplicationAsync ( new string [ 0 ] , ( app ) => app . OnExecute ( ( ) => app . Out . WriteLine ( "42" ) ) ) ;
42+ . RunCommandLineApplicationAsync ( new string [ 0 ] , app => app . OnExecute ( ( ) => app . Out . WriteLine ( "42" ) ) ) ;
4343 Mock . Verify ( console , textWriter ) ;
4444 }
4545
@@ -57,7 +57,7 @@ public async Task TestConventionInjection()
5757 . ConfigureServices ( collection => collection
5858 . AddSingleton < IConsole > ( new TestConsole ( _output ) )
5959 . AddSingleton ( convention . Object ) )
60- . RunCommandLineApplicationAsync ( args , ( app ) => app . OnExecute ( ( ) =>
60+ . RunCommandLineApplicationAsync ( args , app => app . OnExecute ( ( ) =>
6161 {
6262 remainingArgs = app . RemainingArguments . ToArray ( ) ;
6363 } ) ) ;
@@ -71,7 +71,7 @@ public async Task ItThrowsOnUnknownSubCommand()
7171 var ex = await Assert . ThrowsAsync < UnrecognizedCommandParsingException > (
7272 async ( ) => await new HostBuilder ( )
7373 . ConfigureServices ( collection => collection . AddSingleton < IConsole > ( new TestConsole ( _output ) ) )
74- . RunCommandLineApplicationAsync ( new string [ ] { "return41" } , ( app ) =>
74+ . RunCommandLineApplicationAsync ( new string [ ] { "return41" } , app =>
7575 {
7676 app . Command ( "return42" , ( cmd => cmd . OnExecute ( ( ) => 42 ) ) ) ;
7777 } ) ) ;
@@ -84,7 +84,7 @@ public async Task ItRethrowsThrownExceptions()
8484 var ex = await Assert . ThrowsAsync < InvalidOperationException > (
8585 ( ) => new HostBuilder ( )
8686 . ConfigureServices ( collection => collection . AddSingleton < IConsole > ( new TestConsole ( _output ) ) )
87- . RunCommandLineApplicationAsync ( new string [ 0 ] , ( app ) => app . OnExecute ( ( ) => throw new InvalidOperationException ( "A test" ) ) ) ) ;
87+ . RunCommandLineApplicationAsync ( new string [ 0 ] , app => app . OnExecute ( ( ) => throw new InvalidOperationException ( "A test" ) ) ) ) ;
8888 Assert . Equal ( "A test" , ex . Message ) ;
8989 }
9090
@@ -95,7 +95,7 @@ public async Task TestUsingServiceProvider()
9595
9696 await new HostBuilder ( )
9797 . ConfigureServices ( collection => collection . AddSingleton < IConsole > ( new TestConsole ( _output ) ) )
98- . RunCommandLineApplicationAsync ( new string [ 0 ] , ( app ) => app . OnExecute ( ( ) =>
98+ . RunCommandLineApplicationAsync ( new string [ 0 ] , app => app . OnExecute ( ( ) =>
9999 {
100100 env = app . GetRequiredService < IHostEnvironment > ( ) ;
101101 } ) ) ;
0 commit comments