Skip to content

Commit

Permalink
Use using statement
Browse files Browse the repository at this point in the history
  • Loading branch information
atifaziz committed Nov 30, 2022
1 parent c9a8732 commit 369576c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MoreLinq.Test/RankTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ public void TestRankGroupedItems()
[Test]
public void TestRankOfHighestItemIsOne()
{
using (var ts = Enumerable.Range(1, 10).AsTestingSequence())
Assert.AreEqual(1, ts.Rank().OrderBy(x => x).First());
using var ts = Enumerable.Range(1, 10).AsTestingSequence();
Assert.AreEqual(1, ts.Rank().OrderBy(x => x).First());
}

/// <summary>
Expand Down

0 comments on commit 369576c

Please sign in to comment.