@@ -174,25 +174,25 @@ public async Task ShowCommandGeneratesMermaidMarkdownFileFromCsdlWithMermaidDiag
174174 }
175175
176176 [ Fact ]
177- public async Task ThrowIfOpenApiUrlIsNotProvidedWhenValidating ( )
177+ public Task ThrowIfOpenApiUrlIsNotProvidedWhenValidating ( )
178178 {
179- await Assert . ThrowsAsync < ArgumentNullException > ( async ( ) =>
180- await OpenApiService . ValidateOpenApiDocument ( "" , _logger ) ) ;
179+ return Assert . ThrowsAsync < ArgumentNullException > ( ( ) =>
180+ OpenApiService . ValidateOpenApiDocument ( "" , _logger ) ) ;
181181 }
182182
183183
184184 [ Fact ]
185- public async Task ThrowIfURLIsNotResolvableWhenValidating ( )
185+ public Task ThrowIfURLIsNotResolvableWhenValidating ( )
186186 {
187- await Assert . ThrowsAsync < InvalidOperationException > ( async ( ) =>
188- await OpenApiService . ValidateOpenApiDocument ( "https://example.org/itdoesnmatter" , _logger ) ) ;
187+ return Assert . ThrowsAsync < InvalidOperationException > ( ( ) =>
188+ OpenApiService . ValidateOpenApiDocument ( "https://example.org/itdoesnmatter" , _logger ) ) ;
189189 }
190190
191191 [ Fact ]
192- public async Task ThrowIfFileDoesNotExistWhenValidating ( )
192+ public Task ThrowIfFileDoesNotExistWhenValidating ( )
193193 {
194- await Assert . ThrowsAsync < InvalidOperationException > ( async ( ) =>
195- await OpenApiService . ValidateOpenApiDocument ( "aFileThatBetterNotExist.fake" , _logger ) ) ;
194+ return Assert . ThrowsAsync < InvalidOperationException > ( ( ) =>
195+ OpenApiService . ValidateOpenApiDocument ( "aFileThatBetterNotExist.fake" , _logger ) ) ;
196196 }
197197
198198 [ Fact ]
@@ -282,7 +282,7 @@ public async Task TransformCommandConvertsOpenApiWithDefaultOutputNameAndSwitchF
282282 }
283283
284284 [ Fact ]
285- public async Task ThrowTransformCommandIfOpenApiAndCsdlAreEmpty ( )
285+ public Task ThrowTransformCommandIfOpenApiAndCsdlAreEmpty ( )
286286 {
287287 HidiOptions options = new HidiOptions
288288 {
@@ -291,9 +291,8 @@ public async Task ThrowTransformCommandIfOpenApiAndCsdlAreEmpty()
291291 InlineLocal = false ,
292292 InlineExternal = false ,
293293 } ;
294- await Assert . ThrowsAsync < ArgumentException > ( async ( ) =>
295- await OpenApiService . TransformOpenApiDocument ( options , _logger ) ) ;
296-
294+ return Assert . ThrowsAsync < ArgumentException > ( ( ) =>
295+ OpenApiService . TransformOpenApiDocument ( options , _logger ) ) ;
297296 }
298297
299298 [ Fact ]
0 commit comments