public void ConstructorWithPositiveRange() { RangeIntProvider provider = new RangeIntProvider(5, 10); provider.MoveNext(null); Assert.InRange <int>(provider.Current, 5, 10); }
public void ConstructorThenMoveNextWithNegativeRange() { RangeIntProvider provider = new RangeIntProvider(-10, -1); provider.MoveNext(null); Assert.InRange <int>(provider.Current, -10, -1); }