@@ -21,7 +21,7 @@ public RecursiveResolutionTests(ITestOutputHelper testOutputHelper) : base(new J
2121 }
2222
2323 [ Fact ( Skip = "appears to cause a deadlock" ) ]
24- public void Server_Can_Be_Injected_Into_Handler_After_Creation_Using_Registration ( )
24+ public async Task Server_Can_Be_Injected_Into_Handler_After_Creation_Using_Registration ( )
2525 {
2626 Func < Task > a = async ( ) => {
2727 var ( _, server ) = await Initialize (
@@ -34,45 +34,45 @@ public void Server_Can_Be_Injected_Into_Handler_After_Creation_Using_Registratio
3434 . AddHandler < ClassHandler < JsonRpcServer > > ( )
3535 ) ;
3636 } ;
37- a . Should ( ) . NotThrow ( ) ;
37+ await a . Should ( ) . NotThrowAsync ( ) ;
3838 }
3939
4040 [ Fact ( Skip = "appears to cause a deadlock" ) ]
41- public void Server_Cannot_Be_Injected_Into_Handler_During_Creation_Using_Registration ( )
41+ public async Task Server_Cannot_Be_Injected_Into_Handler_During_Creation_Using_Registration ( )
4242 {
4343 Func < Task > a = ( ) => Initialize (
4444 options => { } ,
4545 options => options
4646 . AddHandler < InterfaceHandler < IJsonRpcServer > > ( )
4747 . AddHandler < ClassHandler < JsonRpcServer > > ( )
4848 ) ;
49- var result = a . Should ( ) . Throw < ContainerException > ( ) ;
49+ var result = await a . Should ( ) . ThrowAsync < ContainerException > ( ) ;
5050 result . And . ErrorName . Should ( ) . Be ( "UnableToResolveFromRegisteredServices" ) ;
5151 }
5252
5353 [ Fact ( Skip = "appears to cause a deadlock" ) ]
54- public void Server_Cannot_Be_Injected_Into_Handler_During_Creation_Using_Description ( )
54+ public async Task Server_Cannot_Be_Injected_Into_Handler_During_Creation_Using_Description ( )
5555 {
5656 Func < Task > a = ( ) => Initialize (
5757 options => { } ,
5858 options => options . Services
5959 . AddSingleton ( JsonRpcHandlerDescription . Infer ( typeof ( InterfaceHandler < IJsonRpcServer > ) ) )
6060 . AddSingleton ( JsonRpcHandlerDescription . Infer ( typeof ( ClassHandler < JsonRpcServer > ) ) )
6161 ) ;
62- var result = a . Should ( ) . Throw < ContainerException > ( ) ;
62+ var result = await a . Should ( ) . ThrowAsync < ContainerException > ( ) ;
6363 result . And . ErrorName . Should ( ) . Be ( "UnableToResolveFromRegisteredServices" ) ;
6464 }
6565
6666 [ Fact ( Skip = "appears to cause a deadlock" ) ]
67- public void Server_Cannot_Be_Injected_Into_Handler_During_Creation_Using_Injection ( )
67+ public async Task Server_Cannot_Be_Injected_Into_Handler_During_Creation_Using_Injection ( )
6868 {
6969 Func < Task > a = ( ) => Initialize (
7070 options => { } ,
7171 options => options . Services
7272 . AddSingleton < InterfaceHandler < IJsonRpcServer > > ( )
7373 . AddSingleton < ClassHandler < JsonRpcServer > > ( )
7474 ) ;
75- var result = a . Should ( ) . Throw < ContainerException > ( ) ;
75+ var result = await a . Should ( ) . ThrowAsync < ContainerException > ( ) ;
7676 result . And . ErrorName . Should ( ) . Be ( "UnableToResolveFromRegisteredServices" ) ;
7777 }
7878
0 commit comments