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