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