Skip to content

Commit

Permalink
Add another test for partial replace operation
Browse files Browse the repository at this point in the history
For no particular reason other than to see if it does the right thing,
and it does.
  • Loading branch information
bdach committed Nov 14, 2024
1 parent 23443bf commit 69d1f7f
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,15 @@ public void TestReplaceEntireList()
AddUntilStep("wait for items to load", () => list.ItemMap.Values.All(i => i.IsLoaded));
}

[Test]
public void TestPartialReplace()
{
addItems(5);

AddStep("replace list", () => list.Items.ReplaceRange(2, 2, [100, 101]));
AddUntilStep("wait for items to load", () => list.ItemMap.Values.All(i => i.IsLoaded));
}

private void addDragSteps(int from, int to, int[] expectedSequence)
{
AddStep($"move to {from}", () =>
Expand Down

0 comments on commit 69d1f7f

Please sign in to comment.