Skip to content

Commit

Permalink
Replace unused lambdas in Fold tests with stricter versions
Browse files Browse the repository at this point in the history
  • Loading branch information
atifaziz committed May 2, 2019
1 parent b06309d commit 8b7e21b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MoreLinq.Test/FoldTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,21 @@ public class FoldTest
public void FoldWithTooFewItems()
{
Assert.Throws<InvalidOperationException>(() =>
Enumerable.Range(1, 3).Fold((a, b, c, d) => a + b + c + d));
Enumerable.Range(1, 3).Fold(BreakingFunc.Of<int, int, int, int, int>()));
}

[Test]
public void FoldWithEmptySequence()
{
Assert.Throws<InvalidOperationException>(() =>
Enumerable.Empty<int>().Fold(a => a));
Enumerable.Empty<int>().Fold(BreakingFunc.Of<int, int>()));
}

[Test]
public void FoldWithTooManyItems()
{
Assert.Throws<InvalidOperationException>(() =>
Enumerable.Range(1, 3).Fold((a, b) => a + b));
Enumerable.Range(1, 3).Fold(BreakingFunc.Of<int, int, int>()));
}

[Test]
Expand Down

0 comments on commit 8b7e21b

Please sign in to comment.