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