@@ -30,7 +30,7 @@ public LspRequestRouterTests(ITestOutputHelper testOutputHelper)
30
30
}
31
31
32
32
[ Fact ]
33
- public void ShouldRouteToCorrect_Notification ( )
33
+ public async Task ShouldRouteToCorrect_Notification ( )
34
34
{
35
35
var textDocumentSyncHandler = TextDocumentSyncHandlerExtensions . With ( DocumentSelector . ForPattern ( "**/*.cs" ) ) ;
36
36
textDocumentSyncHandler . Handle ( Arg . Any < DidSaveTextDocumentParams > ( ) ) . Returns ( Task . CompletedTask ) ;
@@ -44,13 +44,13 @@ public void ShouldRouteToCorrect_Notification()
44
44
45
45
var request = new Notification ( "textDocument/didSave" , JObject . Parse ( JsonConvert . SerializeObject ( @params ) ) ) ;
46
46
47
- mediator . RouteNotification ( request ) ;
47
+ await mediator . RouteNotification ( request ) ;
48
48
49
- textDocumentSyncHandler . Received ( 1 ) . Handle ( Arg . Any < DidSaveTextDocumentParams > ( ) ) ;
49
+ await textDocumentSyncHandler . Received ( 1 ) . Handle ( Arg . Any < DidSaveTextDocumentParams > ( ) ) ;
50
50
}
51
51
52
52
[ Fact ]
53
- public void ShouldRouteToCorrect_Notification_WithManyHandlers ( )
53
+ public async Task ShouldRouteToCorrect_Notification_WithManyHandlers ( )
54
54
{
55
55
var textDocumentSyncHandler = TextDocumentSyncHandlerExtensions . With ( DocumentSelector . ForPattern ( "**/*.cs" ) ) ;
56
56
var textDocumentSyncHandler2 = TextDocumentSyncHandlerExtensions . With ( DocumentSelector . ForPattern ( "**/*.cake" ) ) ;
@@ -66,10 +66,10 @@ public void ShouldRouteToCorrect_Notification_WithManyHandlers()
66
66
67
67
var request = new Notification ( "textDocument/didSave" , JObject . Parse ( JsonConvert . SerializeObject ( @params ) ) ) ;
68
68
69
- mediator . RouteNotification ( request ) ;
69
+ await mediator . RouteNotification ( request ) ;
70
70
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 > ( ) ) ;
73
73
}
74
74
75
75
[ Fact ]
0 commit comments