Skip to content

Commit

Permalink
Use "TestingSequence" consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
atifaziz committed Jan 14, 2023
1 parent dc6ac0b commit 681f456
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions MoreLinq.Test/InterleaveTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ public void TestInterleaveEarlyThrowOnNullElementInOtherSequences()
[Test]
public void TestInterleaveDoNoCallMoveNextEagerly()
{
var sequenceA = Enumerable.Range(1, 1);
var sequenceB = MoreEnumerable.From<int>(() => throw new TestException());
using var sequenceA = TestingSequence.Of(1);
using var sequenceB = MoreEnumerable.From<int>(() => throw new TestException())
.AsTestingSequence();
var result = sequenceA.Interleave(sequenceB).Take(1);

Assert.That(() => result.Consume(), Throws.Nothing);
Expand Down

0 comments on commit 681f456

Please sign in to comment.