@@ -30,7 +30,7 @@ public LspRequestRouterTests(ITestOutputHelper testOutputHelper)
3030 }
3131
3232 [ Fact ]
33- public void ShouldRouteToCorrect_Notification ( )
33+ public async Task ShouldRouteToCorrect_Notification ( )
3434 {
3535 var textDocumentSyncHandler = TextDocumentSyncHandlerExtensions . With ( DocumentSelector . ForPattern ( "**/*.cs" ) ) ;
3636 textDocumentSyncHandler . Handle ( Arg . Any < DidSaveTextDocumentParams > ( ) ) . Returns ( Task . CompletedTask ) ;
@@ -44,13 +44,13 @@ public void ShouldRouteToCorrect_Notification()
4444
4545 var request = new Notification ( "textDocument/didSave" , JObject . Parse ( JsonConvert . SerializeObject ( @params ) ) ) ;
4646
47- mediator . RouteNotification ( request ) ;
47+ await mediator . RouteNotification ( request ) ;
4848
49- textDocumentSyncHandler . Received ( 1 ) . Handle ( Arg . Any < DidSaveTextDocumentParams > ( ) ) ;
49+ await textDocumentSyncHandler . Received ( 1 ) . Handle ( Arg . Any < DidSaveTextDocumentParams > ( ) ) ;
5050 }
5151
5252 [ Fact ]
53- public void ShouldRouteToCorrect_Notification_WithManyHandlers ( )
53+ public async Task ShouldRouteToCorrect_Notification_WithManyHandlers ( )
5454 {
5555 var textDocumentSyncHandler = TextDocumentSyncHandlerExtensions . With ( DocumentSelector . ForPattern ( "**/*.cs" ) ) ;
5656 var textDocumentSyncHandler2 = TextDocumentSyncHandlerExtensions . With ( DocumentSelector . ForPattern ( "**/*.cake" ) ) ;
@@ -66,10 +66,10 @@ public void ShouldRouteToCorrect_Notification_WithManyHandlers()
6666
6767 var request = new Notification ( "textDocument/didSave" , JObject . Parse ( JsonConvert . SerializeObject ( @params ) ) ) ;
6868
69- mediator . RouteNotification ( request ) ;
69+ await mediator . RouteNotification ( request ) ;
7070
71- textDocumentSyncHandler . Received ( 0 ) . Handle ( Arg . Any < DidSaveTextDocumentParams > ( ) ) ;
72- textDocumentSyncHandler2 . Received ( 1 ) . Handle ( Arg . Any < DidSaveTextDocumentParams > ( ) ) ;
71+ await textDocumentSyncHandler . Received ( 0 ) . Handle ( Arg . Any < DidSaveTextDocumentParams > ( ) ) ;
72+ await textDocumentSyncHandler2 . Received ( 1 ) . Handle ( Arg . Any < DidSaveTextDocumentParams > ( ) ) ;
7373 }
7474
7575 [ Fact ]
0 commit comments