public IncrementedIntegerProvider(int startAt = 0, int max = GeneratorLimit.Default) { var gen = new IntegerGenerator(); _generator = new IteratorStepper <int>(gen .GenerateIncremented(startAt, max)); }
public void GetNext_OutOfBounds_Throws() { // arrange var stepper = new IteratorStepper <int>(GetIterator(10)); // act Assert.Throws <EndOfIteratorException>(() => { for (var i = 0; i < 20; i++) { stepper.GetNext(); } }); }