public void ObservedQuotes_WrongObservationIndex_Throws(SyncTickers sut, int observationIndex) { Assert.Throws<ArgumentException>(() => sut.ObservedQuotes(0, observationIndex)); }
public void ObservedQuotes_WrongTickerIndex_Throws(SyncTickers sut, int tickerIndex) { Assert.Throws<ArgumentException>(() => sut.ObservedQuotes(tickerIndex, 0)); }
public void ObservedQuotes_ReturnsCorrectData( SyncTickers sut, int tickerIndex, int observationIndex, IReadOnlyList<ISimpleTickerQuote> expected) { Assert.True(expected.SequenceEqual(sut.ObservedQuotes(tickerIndex, observationIndex))); }