public static void LastOrDefault_NoMatch(Labeled<ParallelQuery<int>> labeled, int count, int position)
 {
     ParallelQuery<int> query = labeled.Item;
     IntegerRangeSet seen = new IntegerRangeSet(0, count);
     Assert.Equal(default(int), query.LastOrDefault(x => !seen.Add(x)));
     seen.AssertComplete();
 }
        public static void LastOrDefault_Empty(Labeled <ParallelQuery <int> > labeled, int count, int position)
        {
            _ = count;
            _ = position;
            ParallelQuery <int> query = labeled.Item;

            Assert.Equal(default(int), query.LastOrDefault());
        }
        public static void Range_LastOrDefault(int start, int count)
        {
            ParallelQuery <int> query = ParallelEnumerable.Range(start, count);

            Assert.Equal(count == 0 ? 0 : start + (count - 1), query.LastOrDefault());
        }