@@ -177,25 +177,25 @@ public async Task ShowCommandGeneratesMermaidMarkdownFileFromCsdlWithMermaidDiag
177177 }
178178
179179 [ Fact ]
180- public async Task ThrowIfOpenApiUrlIsNotProvidedWhenValidating ( )
180+ public Task ThrowIfOpenApiUrlIsNotProvidedWhenValidating ( )
181181 {
182- await Assert . ThrowsAsync < ArgumentNullException > ( async ( ) =>
183- await OpenApiService . ValidateOpenApiDocument ( "" , _logger , new CancellationToken ( ) ) ) ;
182+ return Assert . ThrowsAsync < ArgumentNullException > ( ( ) =>
183+ OpenApiService . ValidateOpenApiDocument ( "" , _logger , new CancellationToken ( ) ) ) ;
184184 }
185185
186186
187187 [ Fact ]
188- public async Task ThrowIfURLIsNotResolvableWhenValidating ( )
188+ public Task ThrowIfURLIsNotResolvableWhenValidating ( )
189189 {
190- await Assert . ThrowsAsync < InvalidOperationException > ( async ( ) =>
191- await OpenApiService . ValidateOpenApiDocument ( "https://example.org/itdoesnmatter" , _logger , new CancellationToken ( ) ) ) ;
190+ return Assert . ThrowsAsync < InvalidOperationException > ( ( ) =>
191+ OpenApiService . ValidateOpenApiDocument ( "https://example.org/itdoesnmatter" , _logger , new CancellationToken ( ) ) ) ;
192192 }
193193
194194 [ Fact ]
195- public async Task ThrowIfFileDoesNotExistWhenValidating ( )
195+ public Task ThrowIfFileDoesNotExistWhenValidating ( )
196196 {
197- await Assert . ThrowsAsync < InvalidOperationException > ( async ( ) =>
198- await OpenApiService . ValidateOpenApiDocument ( "aFileThatBetterNotExist.fake" , _logger , new CancellationToken ( ) ) ) ;
197+ return Assert . ThrowsAsync < InvalidOperationException > ( ( ) =>
198+ OpenApiService . ValidateOpenApiDocument ( "aFileThatBetterNotExist.fake" , _logger , new CancellationToken ( ) ) ) ;
199199 }
200200
201201 [ Fact ]
@@ -285,7 +285,7 @@ public async Task TransformCommandConvertsOpenApiWithDefaultOutputNameAndSwitchF
285285 }
286286
287287 [ Fact ]
288- public async Task ThrowTransformCommandIfOpenApiAndCsdlAreEmpty ( )
288+ public Task ThrowTransformCommandIfOpenApiAndCsdlAreEmpty ( )
289289 {
290290 HidiOptions options = new HidiOptions
291291 {
@@ -294,8 +294,8 @@ public async Task ThrowTransformCommandIfOpenApiAndCsdlAreEmpty()
294294 InlineLocal = false ,
295295 InlineExternal = false ,
296296 } ;
297- await Assert . ThrowsAsync < ArgumentException > ( async ( ) =>
298- await OpenApiService . TransformOpenApiDocument ( options , _logger , new CancellationToken ( ) ) ) ;
297+ return Assert . ThrowsAsync < ArgumentException > ( ( ) =>
298+ OpenApiService . TransformOpenApiDocument ( options , _logger , new CancellationToken ( ) ) ) ;
299299
300300 }
301301
0 commit comments