public void CountIsExactlyBadArguments()
 {
     Assert.Throws <ArgumentNullException>(() => EnumerableUtility.CountIsExactly(default(IEnumerable <int>) !, 1));
     Assert.Throws <ArgumentOutOfRangeException>(() => EnumerableUtility.CountIsExactly(new int[0], -1));
 }
Esempio n. 2
0
 public void CountIsExactlyInvalidArguments()
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => new int[0].CountIsExactly(-1));
     Assert.Throws <ArgumentNullException>(() => EnumerableUtility.CountIsExactly(default(int[]), -1));
 }