Example #1
0
 public void LastObservedQuote_WrongObservationIndex_Throws(SyncTickers sut,int observationIndex)
 {
     Assert.Throws<ArgumentException>(() => sut.LastObservedQuote(0, observationIndex));
 }
Example #2
0
 public void LastObservedQuote_WrongTickerIndex_Throws(SyncTickers sut, int tickerIndex)
 {
     Assert.Throws<ArgumentException>(() => sut.LastObservedQuote(tickerIndex,0));
 }
Example #3
0
 public void LastObservedQuote_ReturnsCorrectData(
     SyncTickers sut,
     int tickerIndex,
     int observationIndex,
     IReadOnlyList<ISimpleTickerQuote> expected)
 {
     Assert.Equal<ISimpleTickerQuote>(expected.LastOrDefault(), sut.LastObservedQuote(tickerIndex, observationIndex));
 }