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