Exemple #1
0
 public void CountWithPredicateOverflow()
 {
     Assert.Throws <OverflowException>(() => IntOverflowEnumerable.Count(x => true));
 }
Exemple #2
0
 public void SelectWithIndexOverflow()
 {
     Assert.Throws <OverflowException>(() => IntOverflowEnumerable.Select((x, i) => true).Iterate());
 }
Exemple #3
0
 public void CountOverflow()
 {
     Assert.Throws <OverflowException>(() => IntOverflowEnumerable.Count());
 }
Exemple #4
0
 public void ToArrayOverflow()
 {
     Assert.Throws <OverflowException>(() => IntOverflowEnumerable.ToArray());
 }
Exemple #5
0
 public void WheretWithIndexOverflow()
 {
     Assert.Throws <OverflowException>(() => IntOverflowEnumerable.Where((x, i) => false).Iterate());
 }
Exemple #6
0
 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());
 }