Skip to content

Commit

Permalink
Fix TestWindow*ReturnIsolatedList
Browse files Browse the repository at this point in the history
  • Loading branch information
Orace committed Nov 6, 2019
1 parent 8765b1b commit 340858b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion MoreLinq.Test/WindowLeftTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ public void TestWindowLeftReturnIsolatedList()
var sequence = Enumerable.Repeat(0, 3);
foreach (var window in sequence.WindowLeft(2))
{
window[window.Count - 1] = 1; // modify last item of the window
if (window.Count > 1)
window[1] = 1;
Assert.That(window[0], Is.EqualTo(0));
}
}
Expand Down
3 changes: 2 additions & 1 deletion MoreLinq.Test/WindowRightTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ public void TestWindowRightReturnIsolatedList()
var sequence = Enumerable.Repeat(0, 3);
foreach (var window in sequence.WindowRight(2))
{
window[window.Count - 1] = 1; // modify last item of the window
if (window.Count > 1)
window[1] = 1;
Assert.That(window[0], Is.EqualTo(0));
}
}
Expand Down
2 changes: 1 addition & 1 deletion MoreLinq.Test/WindowTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void TestWindowReturnIsolatedList()
var sequence = Enumerable.Repeat(0, 3);
foreach (var window in sequence.Window(2))
{
window[window.Count - 1] = 1; // modify last item of the window
window[1] = 1;
Assert.That(window[0], Is.EqualTo(0));
}
}
Expand Down

0 comments on commit 340858b

Please sign in to comment.