Skip to content

Commit

Permalink
Use testing sequence in "Pairwise" test
Browse files Browse the repository at this point in the history
Closes #650.
  • Loading branch information
atifaziz committed Jan 20, 2023
1 parent c081197 commit d56bc49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MoreLinq.Test/PairwiseTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ public void PairwiseWithSequenceShorterThanTwo(int count)
[Test]
public void PairwiseWideSourceSequence()
{
var result = new[] { "a", "b", "c", "d" }.Pairwise((x, y) => x + y);
using var source = new[] { "a", "b", "c", "d" }.AsTestingSequence();
var result = source.Pairwise((x, y) => x + y);
result.AssertSequenceEqual("ab", "bc", "cd");
}
}
Expand Down

0 comments on commit d56bc49

Please sign in to comment.