public void CountWithPredicateOverflow() { Assert.Throws <OverflowException>(() => IntOverflowEnumerable.Count(x => true)); }
public void SelectWithIndexOverflow() { Assert.Throws <OverflowException>(() => IntOverflowEnumerable.Select((x, i) => true).Iterate()); }
public void CountOverflow() { Assert.Throws <OverflowException>(() => IntOverflowEnumerable.Count()); }
public void ToArrayOverflow() { Assert.Throws <OverflowException>(() => IntOverflowEnumerable.ToArray()); }
public void WheretWithIndexOverflow() { Assert.Throws <OverflowException>(() => IntOverflowEnumerable.Where((x, i) => false).Iterate()); }
public void TakeWhileWithIndexOverflow() { Assert.Throws <OverflowException>(() => IntOverflowEnumerable.TakeWhile((x, i) => true).Iterate()); }
public void SelectManyWithIndexAndResultSelectorOverflow() { Assert.Throws <OverflowException>(() => IntOverflowEnumerable.SelectMany((x, i) => new int[] { }, (s, c) => c).Iterate()); }
public void SelectManyWithIndexOverflow() { Assert.Throws <OverflowException>(() => IntOverflowEnumerable.SelectMany((x, i) => new int[] { }).Iterate()); }