Esempio n. 1
0
 public void LastWithPredicateEmptySourceInvalidOperation()
 {
     Assert.Throws <InvalidOperationException>(() => EmptyData.Last(x => true)).WithMessageNoMatchingElement();
 }
Esempio n. 2
0
 public void LastEmptySourceInvalidOperation()
 {
     Assert.Throws <InvalidOperationException>(() => EmptyData.Last()).WithMessageNoElements();
 }