@@ -176,25 +176,25 @@ public async Task ShowCommandGeneratesMermaidMarkdownFileFromCsdlWithMermaidDiag
176176 }
177177
178178 [ Fact ]
179- public async Task ThrowIfOpenApiUrlIsNotProvidedWhenValidating ( )
179+ public Task ThrowIfOpenApiUrlIsNotProvidedWhenValidating ( )
180180 {
181- await Assert . ThrowsAsync < ArgumentNullException > ( async ( ) =>
182- await OpenApiService . ValidateOpenApiDocument ( "" , _logger ) ) ;
181+ return Assert . ThrowsAsync < ArgumentNullException > ( ( ) =>
182+ OpenApiService . ValidateOpenApiDocument ( "" , _logger ) ) ;
183183 }
184184
185185
186186 [ Fact ]
187- public async Task ThrowIfURLIsNotResolvableWhenValidating ( )
187+ public Task ThrowIfURLIsNotResolvableWhenValidating ( )
188188 {
189- await Assert . ThrowsAsync < InvalidOperationException > ( async ( ) =>
190- await OpenApiService . ValidateOpenApiDocument ( "https://example.org/itdoesnmatter" , _logger ) ) ;
189+ return Assert . ThrowsAsync < InvalidOperationException > ( ( ) =>
190+ OpenApiService . ValidateOpenApiDocument ( "https://example.org/itdoesnmatter" , _logger ) ) ;
191191 }
192192
193193 [ Fact ]
194- public async Task ThrowIfFileDoesNotExistWhenValidating ( )
194+ public Task ThrowIfFileDoesNotExistWhenValidating ( )
195195 {
196- await Assert . ThrowsAsync < InvalidOperationException > ( async ( ) =>
197- await OpenApiService . ValidateOpenApiDocument ( "aFileThatBetterNotExist.fake" , _logger ) ) ;
196+ return Assert . ThrowsAsync < InvalidOperationException > ( ( ) =>
197+ OpenApiService . ValidateOpenApiDocument ( "aFileThatBetterNotExist.fake" , _logger ) ) ;
198198 }
199199
200200 [ Fact ]
@@ -284,7 +284,7 @@ public async Task TransformCommandConvertsOpenApiWithDefaultOutputNameAndSwitchF
284284 }
285285
286286 [ Fact ]
287- public async Task ThrowTransformCommandIfOpenApiAndCsdlAreEmpty ( )
287+ public Task ThrowTransformCommandIfOpenApiAndCsdlAreEmpty ( )
288288 {
289289 HidiOptions options = new HidiOptions
290290 {
@@ -293,9 +293,8 @@ public async Task ThrowTransformCommandIfOpenApiAndCsdlAreEmpty()
293293 InlineLocal = false ,
294294 InlineExternal = false ,
295295 } ;
296- await Assert . ThrowsAsync < ArgumentException > ( async ( ) =>
297- await OpenApiService . TransformOpenApiDocument ( options , _logger ) ) ;
298-
296+ return Assert . ThrowsAsync < ArgumentException > ( ( ) =>
297+ OpenApiService . TransformOpenApiDocument ( options , _logger ) ) ;
299298 }
300299
301300 [ Fact ]
0 commit comments