예제 #1
0
 public void ElementAtOutOfBoundsArgumentOutOfRange()
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => EmptyData.ElementAt(5)).WithParameter("index");
 }
예제 #2
0
 public void ElementAtNegativeIndexArgumentOutOfRange()
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => EmptyData.ElementAt(-5)).WithParameter("index");
 }