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