File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -310,13 +310,15 @@ public async Task GetQuotesWithExchangeAsync(Exchange exchange)
310
310
Assert . NotEmpty ( result . Data ) ;
311
311
}
312
312
313
- [ Fact ]
314
- public async Task GetQuoteAsync ( )
313
+ [ Theory ]
314
+ [ InlineData ( "AAPL" ) ]
315
+ [ InlineData ( "EURUSD" ) ]
316
+ public async Task GetQuoteAsync ( string tickerOrFx )
315
317
{
316
- var result = await api . GetQuoteAsync ( "AAPL" ) ;
318
+ var result = await api . GetQuoteAsync ( tickerOrFx ) ;
317
319
318
320
result . AssertNoErrors ( ) ;
319
- Assert . Equal ( "AAPL" , result . Data . Symbol ) ;
321
+ Assert . Equal ( tickerOrFx , result . Data . Symbol ) ;
320
322
}
321
323
322
324
[ Fact ]
@@ -342,7 +344,7 @@ public async Task SearchAsync()
342
344
343
345
result . AssertNoErrors ( ) ;
344
346
Assert . NotEmpty ( result . Data ) ;
345
- Assert . True ( result . Data . Count <= 5 ) ;
347
+ Assert . True ( result . Data . Count >= 1 ) ;
346
348
347
349
var firstResult = result . Data . First ( _ => _ . Symbol == "AGS.BR" ) ;
348
350
Assert . Equal ( "AGS.BR" , firstResult . Symbol ) ;
@@ -355,7 +357,7 @@ public async Task SearchByTickerAsync()
355
357
356
358
result . AssertNoErrors ( ) ;
357
359
Assert . NotEmpty ( result . Data ) ;
358
- Assert . True ( result . Data . Count <= 5 ) ;
360
+ Assert . True ( result . Data . Count >= 1 ) ;
359
361
360
362
var firstResult = result . Data . First ( _ => _ . Symbol == "AGS.BR" ) ;
361
363
Assert . Equal ( "AGS.BR" , firstResult . Symbol ) ;
You can’t perform that action at this time.
0 commit comments