Skip to content

Commit

Permalink
Consume
Browse files Browse the repository at this point in the history
  • Loading branch information
atifaziz committed Dec 29, 2024
1 parent ea8a247 commit 8aaf28d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MoreLinq.Test/ConsumeTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ public class ConsumeTest
public void ConsumeReallyConsumes()
{
var counter = 0;
var sequence = Enumerable.Range(0, 10).Pipe(_ => counter++);
using var sequence = Enumerable.Range(0, 10)
.Pipe(_ => counter++)
.AsTestingSequence();
sequence.Consume();
Assert.That(counter, Is.EqualTo(10));
}
Expand Down

0 comments on commit 8aaf28d

Please sign in to comment.