File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -310,13 +310,15 @@ public async Task GetQuotesWithExchangeAsync(Exchange exchange)
310310 Assert . NotEmpty ( result . Data ) ;
311311 }
312312
313- [ Fact ]
314- public async Task GetQuoteAsync ( )
313+ [ Theory ]
314+ [ InlineData ( "AAPL" ) ]
315+ [ InlineData ( "EURUSD" ) ]
316+ public async Task GetQuoteAsync ( string tickerOrFx )
315317 {
316- var result = await api . GetQuoteAsync ( "AAPL" ) ;
318+ var result = await api . GetQuoteAsync ( tickerOrFx ) ;
317319
318320 result . AssertNoErrors ( ) ;
319- Assert . Equal ( "AAPL" , result . Data . Symbol ) ;
321+ Assert . Equal ( tickerOrFx , result . Data . Symbol ) ;
320322 }
321323
322324 [ Fact ]
@@ -342,7 +344,7 @@ public async Task SearchAsync()
342344
343345 result . AssertNoErrors ( ) ;
344346 Assert . NotEmpty ( result . Data ) ;
345- Assert . True ( result . Data . Count <= 5 ) ;
347+ Assert . True ( result . Data . Count >= 1 ) ;
346348
347349 var firstResult = result . Data . First ( _ => _ . Symbol == "AGS.BR" ) ;
348350 Assert . Equal ( "AGS.BR" , firstResult . Symbol ) ;
@@ -355,7 +357,7 @@ public async Task SearchByTickerAsync()
355357
356358 result . AssertNoErrors ( ) ;
357359 Assert . NotEmpty ( result . Data ) ;
358- Assert . True ( result . Data . Count <= 5 ) ;
360+ Assert . True ( result . Data . Count >= 1 ) ;
359361
360362 var firstResult = result . Data . First ( _ => _ . Symbol == "AGS.BR" ) ;
361363 Assert . Equal ( "AGS.BR" , firstResult . Symbol ) ;
You can’t perform that action at this time.
0 commit comments