Skip to content

Commit

Permalink
Add TagFirstLastWithSourceSequenceOfZero test
Browse files Browse the repository at this point in the history
  • Loading branch information
Orace committed Jan 16, 2023
1 parent f8dc833 commit b892bce
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions MoreLinq.Test/TagFirstLastTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ public void TagFirstLastIsLazy()
new BreakingSequence<object>().TagFirstLast(BreakingFunc.Of<object, bool, bool, object>());
}

[Test]
public void TagFirstLastWithSourceSequenceOfZero()
{
var source = new int[0];
var sut = source.TagFirstLast((item, isFirst, isLast) => new { Item = item, IsFirst = isFirst, IsLast = isLast });
Assert.That(sut, Is.Empty);
}

[Test]
public void TagFirstLastWithSourceSequenceOfOne()
{
Expand Down

0 comments on commit b892bce

Please sign in to comment.