public void EmptySourcePredicate() { IQueryable<int> source = Enumerable.Empty<int>().AsQueryable(); Assert.Throws<InvalidOperationException>(() => source.Last(x => true)); Assert.Throws<InvalidOperationException>(() => source.Last(x => false)); }