@@ -176,25 +176,25 @@ public async Task ShowCommandGeneratesMermaidMarkdownFileFromCsdlWithMermaidDiag
176
176
}
177
177
178
178
[ Fact ]
179
- public async Task ThrowIfOpenApiUrlIsNotProvidedWhenValidating ( )
179
+ public Task ThrowIfOpenApiUrlIsNotProvidedWhenValidating ( )
180
180
{
181
- await Assert . ThrowsAsync < ArgumentNullException > ( async ( ) =>
182
- await OpenApiService . ValidateOpenApiDocument ( "" , _logger ) ) ;
181
+ return Assert . ThrowsAsync < ArgumentNullException > ( ( ) =>
182
+ OpenApiService . ValidateOpenApiDocument ( "" , _logger ) ) ;
183
183
}
184
184
185
185
186
186
[ Fact ]
187
- public async Task ThrowIfURLIsNotResolvableWhenValidating ( )
187
+ public Task ThrowIfURLIsNotResolvableWhenValidating ( )
188
188
{
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 ) ) ;
191
191
}
192
192
193
193
[ Fact ]
194
- public async Task ThrowIfFileDoesNotExistWhenValidating ( )
194
+ public Task ThrowIfFileDoesNotExistWhenValidating ( )
195
195
{
196
- await Assert . ThrowsAsync < InvalidOperationException > ( async ( ) =>
197
- await OpenApiService . ValidateOpenApiDocument ( "aFileThatBetterNotExist.fake" , _logger ) ) ;
196
+ return Assert . ThrowsAsync < InvalidOperationException > ( ( ) =>
197
+ OpenApiService . ValidateOpenApiDocument ( "aFileThatBetterNotExist.fake" , _logger ) ) ;
198
198
}
199
199
200
200
[ Fact ]
@@ -284,7 +284,7 @@ public async Task TransformCommandConvertsOpenApiWithDefaultOutputNameAndSwitchF
284
284
}
285
285
286
286
[ Fact ]
287
- public async Task ThrowTransformCommandIfOpenApiAndCsdlAreEmpty ( )
287
+ public Task ThrowTransformCommandIfOpenApiAndCsdlAreEmpty ( )
288
288
{
289
289
HidiOptions options = new HidiOptions
290
290
{
@@ -293,9 +293,8 @@ public async Task ThrowTransformCommandIfOpenApiAndCsdlAreEmpty()
293
293
InlineLocal = false ,
294
294
InlineExternal = false ,
295
295
} ;
296
- await Assert . ThrowsAsync < ArgumentException > ( async ( ) =>
297
- await OpenApiService . TransformOpenApiDocument ( options , _logger ) ) ;
298
-
296
+ return Assert . ThrowsAsync < ArgumentException > ( ( ) =>
297
+ OpenApiService . TransformOpenApiDocument ( options , _logger ) ) ;
299
298
}
300
299
301
300
[ Fact ]
0 commit comments