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