diff --git a/src/libraries/System.Linq.Parallel/tests/QueryOperators/AggregateTests.cs b/src/libraries/System.Linq.Parallel/tests/QueryOperators/AggregateTests.cs index 3de0a0983bcf18..af0682f67dc44e 100644 --- a/src/libraries/System.Linq.Parallel/tests/QueryOperators/AggregateTests.cs +++ b/src/libraries/System.Linq.Parallel/tests/QueryOperators/AggregateTests.cs @@ -317,7 +317,7 @@ public static void Aggregate_OperationCanceledException_PreCanceled() AssertThrows.AlreadyCanceled(source => source.Aggregate(0, (i, j) => i)); AssertThrows.AlreadyCanceled(source => source.Aggregate(0, (i, j) => i, i => i)); AssertThrows.AlreadyCanceled(source => source.Aggregate(0, (i, j) => i, (i, j) => i, i => i)); - AssertThrows.AlreadyCanceled(source => source.Aggregate(() => 0, (i, j) => i, (i, j) => i, i => i)); + AssertThrows.AlreadyCanceled(source => source.Aggregate(() => 0, (i, j) => i, (i, j) => i, (int i) => i)); } [Fact] @@ -330,12 +330,12 @@ public static void Aggregate_AggregateException() AssertThrows.Wrapped(() => UnorderedSources.Default(2).Aggregate(0, (i, j) => { throw new DeliberateTestException(); }, (i, j) => i, i => i)); AssertThrows.Wrapped(() => UnorderedSources.Default(2).Aggregate(0, (i, j) => i, (i, j) => i, i => { throw new DeliberateTestException(); })); AssertThrows.Wrapped(() => UnorderedSources.Default(2).Aggregate(() => { throw new DeliberateTestException(); }, (i, j) => i, (i, j) => i, i => i)); - AssertThrows.Wrapped(() => UnorderedSources.Default(2).Aggregate(() => 0, (i, j) => { throw new DeliberateTestException(); }, (i, j) => i, i => i)); + AssertThrows.Wrapped(() => UnorderedSources.Default(2).Aggregate(() => 0, (i, j) => { throw new DeliberateTestException(); }, (i, j) => i, (int i) => i)); AssertThrows.Wrapped(() => UnorderedSources.Default(2).Aggregate(() => 0, (i, j) => i, (i, j) => i, i => { throw new DeliberateTestException(); })); if (Environment.ProcessorCount >= 2) { AssertThrows.Wrapped(() => UnorderedSources.Default(2).Aggregate(0, (i, j) => i, (i, j) => { throw new DeliberateTestException(); }, i => i)); - AssertThrows.Wrapped(() => UnorderedSources.Default(2).Aggregate(() => 0, (i, j) => i, (i, j) => { throw new DeliberateTestException(); }, i => i)); + AssertThrows.Wrapped(() => UnorderedSources.Default(2).Aggregate(() => 0, (i, j) => i, (i, j) => { throw new DeliberateTestException(); }, (int i) => i)); } } @@ -357,10 +357,10 @@ public static void Aggregate_ArgumentNullException() AssertExtensions.Throws("combineAccumulatorsFunc", () => UnorderedSources.Default(1).Aggregate(0, (i, j) => i, null, i => i)); AssertExtensions.Throws("resultSelector", () => UnorderedSources.Default(1).Aggregate(0, (i, j) => i, (i, j) => i, null)); - AssertExtensions.Throws("source", () => ((ParallelQuery)null).Aggregate(() => 0, (i, j) => i, (i, j) => i, i => i)); + AssertExtensions.Throws("source", () => ((ParallelQuery)null).Aggregate(() => 0, (i, j) => i, (i, j) => i, (int i) => i)); AssertExtensions.Throws("seedFactory", () => UnorderedSources.Default(1).Aggregate(null, (i, j) => i, (i, j) => i, i => i)); - AssertExtensions.Throws("updateAccumulatorFunc", () => UnorderedSources.Default(1).Aggregate(() => 0, null, (i, j) => i, i => i)); - AssertExtensions.Throws("combineAccumulatorsFunc", () => UnorderedSources.Default(1).Aggregate(() => 0, (i, j) => i, null, i => i)); + AssertExtensions.Throws("updateAccumulatorFunc", () => UnorderedSources.Default(1).Aggregate(() => 0, null, (i, j) => i, (int i) => i)); + AssertExtensions.Throws("combineAccumulatorsFunc", () => UnorderedSources.Default(1).Aggregate(() => 0, (i, j) => i, null, (int i) => i)); AssertExtensions.Throws("resultSelector", () => UnorderedSources.Default(1).Aggregate(() => 0, (i, j) => i, (i, j) => i, null)); } }